2024-04-06 19:14:58 +08:00
|
|
|
#!/bin/zsh
|
|
|
|
|
2024-04-16 13:54:22 +08:00
|
|
|
#--- zshrc ---#
|
|
|
|
edit_profile () {
|
|
|
|
code -n -w $profile
|
|
|
|
source $profile
|
|
|
|
}
|
|
|
|
|
|
|
|
#--- bat (cat) ---#
|
2024-04-06 19:14:58 +08:00
|
|
|
alias cat='bat'
|
2024-04-16 13:54:22 +08:00
|
|
|
#--- lsd ---#
|
2024-04-06 19:14:58 +08:00
|
|
|
alias cols='lsd'
|
|
|
|
alias crls='cols'
|
|
|
|
alias ccls='crls -g'
|
|
|
|
alias cl='ccls -lA'
|
|
|
|
alias cll='ccls -l'
|
|
|
|
alias cla='ccls -la'
|
|
|
|
alias lc='ccls'
|
|
|
|
alias ls='lc'
|
|
|
|
alias l='cl'
|
|
|
|
alias ll='cll'
|
|
|
|
alias la='cla'
|
|
|
|
alias lgg='ccls --tree'
|
|
|
|
|
2024-04-16 13:54:22 +08:00
|
|
|
#--- zoxide (cd) ---#
|
2024-04-06 19:14:58 +08:00
|
|
|
# zoxide must init after compinit is called
|
|
|
|
eval "$(zoxide init zsh)"
|
|
|
|
alias cd='z'
|