25 lines
694 B
Bash
25 lines
694 B
Bash
#!/bin/zsh
|
|
#####################################################################
|
|
|
|
alias pd='pushd'
|
|
alias qd='popd'
|
|
alias lsd='dirs'
|
|
|
|
alias pdo='pwd | xclip' # [p]aste [d]irectory [o]n clipboard
|
|
alias cdo='cd $(xclip -o)' # [c]hange to [d]irectory [o]n clipboard
|
|
|
|
alias restart='clear; source ~/.zshrc'
|
|
|
|
alias fix='vim $(git diff --name-only | uniq) -p'
|
|
|
|
alias w='watch -tn1 '
|
|
|
|
#####################################################################
|
|
|
|
command -v bat >/dev/null 2>&1 && alias cat='bat --style="plain"'
|
|
|
|
#####################################################################
|
|
|
|
alias erg='EDIT_RIPGREP_FILE_MATCHES'
|
|
EDIT_RIPGREP_FILE_MATCHES() { $EDITOR $(rg --color=never -l $@); }
|