- check commands exists before using
- clean startup prompt
This commit is contained in:
Tri Vo Khac committed 2023-05-04 00:05:27 +07:00
1 parent 21cbda4332
commit 52ee25395c
3 files changed
+7 -5

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)" [ -x `command -v brew` ] && eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(fnm env --use-on-cd)" [ -x `command -v fnm` ] && eval "$(fnm env --use-on-cd)"
+3
View File
@@ -55,6 +55,9 @@ plugin-load $repos
# FZF # FZF
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Clean startup prompt
! [ -f ~/.hushlogin ] && touch ~/.hushlogin
compinit compinit
# Edit line in vim with ctrl-e: # Edit line in vim with ctrl-e:
+2 -3
View File
@@ -1,6 +1,5 @@
#!/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" alias zsh-update-plugins="find "$ZDOTDIR/plugins" -type d -exec test -e '{}/.git' ';' -print0 | xargs -I {} -0 git -C {} pull -q"
alias ls="lsd" [ -x `command -v lsd` ] && alias ls="lsd"
alias cat="bat" [ -x `command -v bat` ] && alias cat="bat"
alias pnpx="pnpm dlx"