Skip to content

Commit

Permalink
chore(zsh): use olets/zsh-abbr
Browse files Browse the repository at this point in the history
  • Loading branch information
keidarcy committed Sep 17, 2024
1 parent 0e94b8d commit 73b21fe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions macos/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ brew "hammerspoon"
brew "eth-p/software/bat-extras"

brew "gitui"

brew "keidarcy/tap/e1s"

brew "olets/tap/zsh-abbr"
6 changes: 3 additions & 3 deletions zsh/.config/zsh/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ alias tkserver='tmux kill-server'
# System
alias h='history'
alias c='clear'
alias cc='c' # overwrite /usr/bin/cc
alias cc='clear' # overwrite /usr/bin/cc
alias rr='ranger'
alias mkdir='mkdir -p'
alias zshrc='e $HOME/dotfiles/zsh/.zshrc'
alias vimrc='e $HOME/dotfiles/vim/.vimrc'
alias zshrc='nvim $HOME/dotfiles/zsh/.zshrc'
alias vimrc='nvim $HOME/dotfiles/vim/.vimrc'
alias dirsize='du -sh'
alias subdirsize='du -h -d 1 | sort -hr'
alias myip='curl ipinfo.io/ip'
Expand Down
10 changes: 9 additions & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ zinit ice wait lucid
zinit for \
light-mode zsh-users/zsh-autosuggestions \
light-mode zdharma-continuum/fast-syntax-highlighting \
light-mode romkatv/zsh-prompt-benchmark
light-mode romkatv/zsh-prompt-benchmark \
light-mode olets/zsh-abbr
# \
# light-mode zdharma-continuum/history-search-multi-word

Expand Down Expand Up @@ -123,8 +124,15 @@ if type brew &>/dev/null; then
fi
_comp_options+=(globdots) # Include hidden files.
fi

#endregion zinit

# https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/#optional-kubectl-configurations-and-plugins
source <(kubectl completion zsh)

# https://zsh-abbr.olets.dev/commands.html#import-aliases
abbr -q import-aliases

#region custom
# custom scripts
for file in ~/.config/zsh/*.sh; do [[ -f "$file" ]] && source "$file"; done
Expand Down

0 comments on commit 73b21fe

Please sign in to comment.