chore: fix some scripts

This commit is contained in:
Tri Vo Khac committed 2023-05-24 13:00:12 +07:00
1 parent 84b2d7b4f7
commit 33a944135e
3 files changed
+5 -6

No files matched your search

+2 -2
View File
@@ -1,3 +1,3 @@
# Set PATH, MANPATH, etc., for Homebrew. # Set PATH, MANPATH, etc., for Homebrew.
#eval "$(/opt/homebrew/bin/brew shellenv)" [ -f /opt/homebrew/bin/brew ] && eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(fnm env --use-on-cd)" command -v fnm > /dev/null 2>&1 && eval "$(fnm env --use-on-cd)"
+2 -3
View File
@@ -1,5 +1,4 @@
#!/bin/sh #!/bin/sh
alias zsh-update-plugins="find "$ZDOTDIR/plugins" -type d -exec test -e '{}/.git' ';' -print0 | xargs -I {} -0 git -C {} pull -q" [ -x "$(command -v lsd)" ] && alias ls="lsd"
[ -x `command -v lsd` ] && alias ls="lsd" [ -x "$(command -v bat)" ] && alias cat="bat"
[ -x `command -v bat` ] && alias cat="bat"
+1 -1
View File
@@ -27,7 +27,7 @@ function zsh_add_completion() {
[ -f $ZDOTDIR/.zccompdump ] && $ZDOTDIR/.zccompdump [ -f $ZDOTDIR/.zccompdump ] && $ZDOTDIR/.zccompdump
fi fi
completion_file="$(basename "${completion_file_path}")" completion_file="$(basename "${completion_file_path}")"
if [ "$2" = true ] && compinit "${completion_file:1}" [ "$2" = true ] && compinit "${completion_file:1}"
} }
# https://github.com/mattmc3/zsh_unplugged # https://github.com/mattmc3/zsh_unplugged