Skip to content

Commit

Permalink
move local context commands to local file
Browse files Browse the repository at this point in the history
- other minor updates
  • Loading branch information
codevbus committed Jul 23, 2024
1 parent e4fd22d commit 559b291
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ bindkey '^[[B' history-substring-search-down
# Aliases
alias ls='eza'
alias cat='bat'
alias history='history 0'
alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale"

# nvm
export NVM_DIR="$HOME/.nvm"
Expand Down Expand Up @@ -66,6 +68,16 @@ setopt HIST_REDUCE_BLANKS # remove unnecessary blanks
setopt INC_APPEND_HISTORY_TIME # append command to history file immediately after execution
setopt EXTENDED_HISTORY # record command start time

# zsh fzf
eval "$(fzf --zsh)"

#fix:https://github.com/romkatv/powerlevel10k/issues/1554#issuecomment-1701598955
unset ZSH_AUTOSUGGEST_USE_ASYNC

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

# source local.zsh for local overrides
[ -f ~/.zshrc.local ] && source ~/.zshrc.local

0 comments on commit 559b291

Please sign in to comment.