This commit is contained in:
hl committed 2024-11-18 18:19:43 +08:00
1 parent aac3755f46
commit 6aa1160dd3
3 files changed
+14 -7

No files matched your search

+5 -5
View File
@@ -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 **<TAB>
+4 -2
View File
@@ -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
+5
View File
@@ -0,0 +1,5 @@
.git
__pycache__
node_modules
.cache
.snapshots