2021-09-16 20:55:50 +00:00
|
|
|
#!/bin/zsh
|
2022-08-23 23:44:56 +00:00
|
|
|
#####################################################################
|
2021-09-16 20:55:50 +00:00
|
|
|
|
2022-08-23 23:44:56 +00:00
|
|
|
alias pd='pushd'
|
|
|
|
alias qd='popd'
|
|
|
|
alias lsd='dirs'
|
2021-09-16 20:55:50 +00:00
|
|
|
|
2022-08-23 23:44:56 +00:00
|
|
|
alias pdo='pwd | xclip' # [p]aste [d]irectory [o]n clipboard
|
|
|
|
alias cdo='cd $(xclip -o)' # [c]hange to [d]irectory [o]n clipboard
|
2021-09-16 20:55:50 +00:00
|
|
|
|
2022-08-23 23:44:56 +00:00
|
|
|
alias restart='clear; source ~/.zshrc'
|
2021-09-17 01:42:11 +00:00
|
|
|
|
|
|
|
alias fix='vim $(git diff --name-only | uniq) -p'
|
2021-09-23 17:16:41 +00:00
|
|
|
|
2022-08-23 23:44:56 +00:00
|
|
|
#####################################################################
|
2022-04-20 18:59:45 +00:00
|
|
|
|
|
|
|
command -v bat >/dev/null 2>&1 && alias cat='bat --style="plain"'
|
2021-09-17 01:40:59 +00:00
|
|
|
|
2022-08-23 23:44:56 +00:00
|
|
|
#####################################################################
|
2021-09-17 01:40:59 +00:00
|
|
|
|
2022-08-23 23:44:56 +00:00
|
|
|
alias erg='EDIT_RIPGREP_FILE_MATCHES'
|
|
|
|
EDIT_RIPGREP_FILE_MATCHES() { $EDITOR $(rg --color=never -l $@); }
|