add zsh aliases
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
# File system
|
||||||
|
if command -v eza &> /dev/null; then
|
||||||
|
alias ls='eza -lh --group-directories-first --icons=auto'
|
||||||
|
alias lsa='ls -a'
|
||||||
|
alias lt='eza --tree --level=2 --long --icons --git'
|
||||||
|
alias lta='lt -a'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$TERM" == "xterm-kitty" ]]; then
|
||||||
|
alias ff="fzf --preview 'case \$(file --mime-type -b {}) in image/*) kitty icat --clear --transfer-mode=memory --stdin=no --place=\${FZF_PREVIEW_COLUMNS}x\${FZF_PREVIEW_LINES}@0x0 {} ;; *) bat --style=numbers --color=always {} ;; esac'"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Tools
|
||||||
|
#alias c='opencode'
|
||||||
|
#alias cx='printf "\033[2J\033[3J\033[H" && claude --permission-mode bypassPermissions'
|
||||||
|
#alias d='docker'
|
||||||
|
#alias r='rails'
|
||||||
|
#alias t='tmux attach || tmux new -s Work'
|
||||||
|
#alias ic='tdl c'
|
||||||
|
#alias ix='tdl cx'
|
||||||
|
#alias icx='tdl c cx'
|
||||||
|
#n() { if [ "$#" -eq 0 ]; then command nvim . ; else command nvim "$@"; fi; }
|
||||||
|
|
||||||
|
# Git
|
||||||
|
alias g='git'
|
||||||
|
alias gcm='git commit -m'
|
||||||
|
alias gcam='git commit -a -m'
|
||||||
|
alias gcad='git commit -a --amend'
|
||||||
Reference in New Issue
Block a user