diff --git a/.zshrc b/.zshrc index 67f7b9c..5bef838 100644 --- a/.zshrc +++ b/.zshrc @@ -47,19 +47,19 @@ compdef sshpy=ssh export FZF_COMPLETION_TRIGGER="''" export FZF_COMPLETION_DIR_COMMANDS='cd pushd rmdir ls ll' -export FZF_DEFAULT_COMMAND='fdfind --strip-cwd-prefix --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache' +export FZF_DEFAULT_COMMAND="fd --strip-cwd-prefix --hidden" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" -export FZF_ALT_C_COMMAND='fdfind --type d --strip-cwd-prefix --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache' +export FZF_ALT_C_COMMAND="fd --type d --strip-cwd-prefix --hidden" # Override default _fzf_compgen_path() { - fdfind --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache . "$1" + fd --hidden . "$1" } _fzf_compgen_dir() { - fdfind --type d --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache . "$1" + fd --type d --hidden . "$1" } # Self-defined __fzf_compgen_file(){ - fdfind --type f --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache . "$1" + fd --type f --hidden . "$1" } # For ** diff --git a/configure.sh b/configure.sh index 1097f02..16e805f 100755 --- a/configure.sh +++ b/configure.sh @@ -30,8 +30,10 @@ configure(){ sed -i "s/.*wherewas all.*/bind \^B wherewas all/g" /etc/nanorc usermod -s /usr/bin/zsh $(whoami) - cp "$AWD/.zshrc" $HOME - cp "$AWD/.screenrc" $HOME + mkdir $HOME/.config/fd + cp "$AWD/ignore" $HOME/.config/fd/ + cp "$AWD/.zshrc" $HOME/ + cp "$AWD/.screenrc" $HOME/ if [ $DISTRO_PVE -eq 1 ]; then sed -i -E "s/.*prompt .*/prompt bart/g" $HOME/.zshrc fi diff --git a/ignore b/ignore new file mode 100644 index 0000000..419f128 --- /dev/null +++ b/ignore @@ -0,0 +1,5 @@ +.git +__pycache__ +node_modules +.cache +.snapshots \ No newline at end of file