From b9ad8b63e174802e3de570655f674c5ae02ad239 Mon Sep 17 00:00:00 2001 From: TymanWasTaken <32660892+TymanWasTaken@users.noreply.github.com> Date: Mon, 7 Feb 2022 22:35:38 -0700 Subject: [PATCH] aliases --- dotfiles/.zsh_aliases | 18 ++++++++++++++++++ dotfiles/.zshrc | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 dotfiles/.zsh_aliases diff --git a/dotfiles/.zsh_aliases b/dotfiles/.zsh_aliases new file mode 100644 index 0000000..a5641ed --- /dev/null +++ b/dotfiles/.zsh_aliases @@ -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" diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index d3f171b..7bae4f7 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -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