diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-16 20:47:12 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-16 20:47:12 +0900 |
| commit | ad02976ec9031ed3c6867a83f7acab2738627679 (patch) | |
| tree | 003a691657a61827b39286956d61cf0cd489e350 /home-manager/config | |
| parent | ffdabcd743a0bba7aca86c15cda6958a7c616093 (diff) | |
| download | dotfiles-ad02976ec9031ed3c6867a83f7acab2738627679.tar.gz dotfiles-ad02976ec9031ed3c6867a83f7acab2738627679.tar.zst dotfiles-ad02976ec9031ed3c6867a83f7acab2738627679.zip | |
claude: remove safe wrapper of find
Because Claude Code parses find's arguments by itself.
Diffstat (limited to 'home-manager/config')
| -rw-r--r-- | home-manager/config/sh/claude-code.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/home-manager/config/sh/claude-code.sh b/home-manager/config/sh/claude-code.sh index 8dc8fc3..8ba9ea7 100644 --- a/home-manager/config/sh/claude-code.sh +++ b/home-manager/config/sh/claude-code.sh @@ -1,25 +1,4 @@ if [ -n "$CLAUDECODE" ]; then - # Safe wrapper for find command - find() { - has_dangerous=0 - - for arg in "$@"; do - case "$arg" in - -delete|-exec|-execdir|-fls|-fprint|-fprint0|-fprintf|-ok|-okdir) - has_dangerous=1 - break - ;; - esac - done - - if [ $has_dangerous = 1 ]; then - echo "Error: dangerous actions, -delete/-exec/-execdir/-fls/-fprint/-fprint0/-fprintf/-ok/-okdir, are not allowed in Claude Code environment" >&2 - return 1 - fi - - command find "$@" - } - # Safe wrapper for fd command fd() { has_dangerous=0 |
