This commit is contained in:
parent
d93f63cf82
commit
c449dfcb5f
13 changed files with 105 additions and 58 deletions
|
|
@ -9,6 +9,8 @@ eval "$(dircolors -b)"
|
|||
HISTSIZE=10000000
|
||||
SAVEHIST=10000000
|
||||
HISTFILE="${HOME}/.cache/zsh_history"
|
||||
alias history='history 1000000000000000'
|
||||
alias hist='history'
|
||||
|
||||
setopt hist_expire_dups_first
|
||||
setopt hist_ignore_dups
|
||||
|
|
@ -95,7 +97,7 @@ alias xcp='perl -pe "chomp if eof" | xclip -selection clipboard'
|
|||
alias rgf='rg --files | rg'
|
||||
alias wt='watch --color -d -cn 0.1 '
|
||||
alias .e='set -a && source .env && set +a'
|
||||
alias vimu='vim -u /dev/null'
|
||||
alias vimu='vim -n -u NONE -i NONE -N --noplugin'
|
||||
alias reswap="sudo bash -c 'echo Working...; swapoff /swapfile && sudo swapon /swapfile'"
|
||||
alias make="make -j$(nproc)"
|
||||
alias py='python3'
|
||||
|
|
@ -107,8 +109,10 @@ alias rs='stow -R .'
|
|||
alias sst='ssh -t'
|
||||
alias rdj='rmdir ./*'
|
||||
alias qr='qrencode -t ansiutf8'
|
||||
alias rgi='rg --no-ignore --hidden'
|
||||
|
||||
# function aliases
|
||||
mkexe() { touch "${1?}"; chmod +x "$1"; }; compdef _files mkexe;
|
||||
bl() { brightnessctl set "$1"% > /dev/null; }
|
||||
nosw() { alacritty --class 'noswallow' -e "$@"; }; compdef _command nosw
|
||||
vims() { filepath="$(type "$1" | rev | cut -d ' ' -f 1 | rev)"; [ $? -eq 0 ] && vim "${filepath}"; }; compdef _command vims
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue