aliases
This commit is contained in:
parent
25fae6a64c
commit
b9ad8b63e1
2 changed files with 19 additions and 1 deletions
18
dotfiles/.zsh_aliases
Normal file
18
dotfiles/.zsh_aliases
Normal file
|
@ -0,0 +1,18 @@
|
|||
alias ga="git add -A"
|
||||
gc() {
|
||||
git commit -S -m "$@"
|
||||
}
|
||||
alias gp="git push"
|
||||
alias fmt="yarn format"
|
||||
alias ..="cd .."
|
||||
alias ....="cd ../.."
|
||||
alias ......="cd ../../.."
|
||||
psh() {
|
||||
fmt && ga && gc $@ && gp
|
||||
}
|
||||
alias stop="doas systemctl stop"
|
||||
alias start="doas systemctl start"
|
||||
alias ls="exa"
|
||||
alias la="exa -a"
|
||||
alias lal="exa -al"
|
||||
alias tree="exa --tree"
|
|
@ -31,7 +31,7 @@ if ls "$HOME/.pyenv" &> /dev/null; then
|
|||
fi
|
||||
#---------------------------------------------------------------------------------#
|
||||
### Aliases
|
||||
alias ls="exa" # `exa` instead of `ls`
|
||||
source "$HOME/.zsh_aliases"
|
||||
eval $(thefuck --alias) # `fuck` alias
|
||||
#---------------------------------------------------------------------------------#
|
||||
### Setup zinit
|
||||
|
|
Reference in a new issue