zsh rc cleanup
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# --- Basic Alias ---------------------------------------------
|
||||
alias restart='clear; source ~/.zshrc; echo'
|
||||
|
||||
alias pd='pushd';
|
||||
alias qd='popd';
|
||||
alias lspd='dirs';
|
||||
@ -11,6 +13,10 @@ alias cdo='cd $(xclip -o)'; # [cd] to directory [o]n clipboard
|
||||
alias color_demo='msgcat --color=test'
|
||||
|
||||
|
||||
# --- !@#$ Aliases --------------------------------------------
|
||||
alias sl='sl -alF | lolcat';
|
||||
|
||||
|
||||
# --- GIT -----------------------------------------------------
|
||||
alias gitbranchcleanup='git branch -d $(git branch | sed -E "/develop|master|\*/d")'
|
||||
alias fix='vim $(git diff --name-only | uniq) -p';
|
||||
@ -30,7 +36,7 @@ OPEN_CURRENT_GIT_REPOSITORY_IN_WEB_BROWSER() {
|
||||
|
||||
|
||||
# --- Miscellaneous -------------------------------------------
|
||||
alias rgv='EDIT_RIP_GREP_FILE_MATCHES';
|
||||
alias erg='EDIT_RIP_GREP_FILE_MATCHES';
|
||||
EDIT_RIP_GREP_FILE_MATCHES() {
|
||||
[ $EDITOR = "vim" ] \
|
||||
&& $EDITOR -p $(rg -l $1) \
|
||||
|
Reference in New Issue
Block a user