71 lines
2 KiB
Bash
71 lines
2 KiB
Bash
#!/bin/sh
|
|
|
|
alias .f='git --git-dir="$HOME/.dotfiles"'
|
|
|
|
alias aliases='$EDITOR ~/.config/aliasrc && . ~/.config/aliasrc'
|
|
alias aliases.local='$EDITOR ~/.config/aliasrc.local && . ~/.config/aliasrc'
|
|
alias artisan='./artisan'
|
|
|
|
alias bfg='java -jar ~/tools/bfg-1.13.0.jar'
|
|
alias bspwm-default='echo "default" > /tmp/bspwm_mode; bspc wm -r'
|
|
alias bspwm-present='echo "presenter" > /tmp/bspwm_mode; bspc wm -r'
|
|
alias bspwm-single='echo "single" > /tmp/bspwm_mode; bspc wm -r'
|
|
|
|
alias clip='xclip -selection clipboard'
|
|
alias cp='cp -iv'
|
|
|
|
alias df='df -h'
|
|
alias doas='doas -- '
|
|
alias doasu='\doas -u '
|
|
alias dotfiles='.f'
|
|
alias dotfiles-mail='.fm'
|
|
alias du='du -h'
|
|
|
|
alias free='free -h'
|
|
|
|
alias git-apply-clip='clip -out | base64 -d | git apply -'
|
|
alias grep='grep --color=auto'
|
|
alias grep-highlight='grep -e "^" -e'
|
|
|
|
alias hist-grep='history 0 | grep '
|
|
|
|
alias icat="kitty +kitten icat"
|
|
alias ip='ip -c'
|
|
|
|
alias j='jump'
|
|
|
|
alias keepass-unlock='(pkill keepassxc; pass notes/keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx)'
|
|
|
|
alias less='less -FS -x4'
|
|
alias ls='ls -lFh --color=auto'
|
|
alias lsblk='lsblk -o +PARTLABEL,FSTYPE,UUID'
|
|
|
|
alias make='make -j5'
|
|
alias mkdir='mkdir -pv'
|
|
alias mv='mv -iv'
|
|
|
|
alias pacman-autoremove='pacman -Rns $(pacman -Qtdq)'
|
|
alias ps-grep='ps aux | grep -v grep | grep'
|
|
|
|
alias qutebrowser-kiosk='qutebrowser -B $XDG_DATA_HOME/qutebrowser-kiosk -C $XDG_CONFIG_HOME/qutebrowser/config-kiosk.py'
|
|
|
|
alias rm='rm -I --one-file-system -v'
|
|
|
|
alias sail='bash vendor/bin/sail'
|
|
alias sudo='sudo '
|
|
|
|
alias watch='watch -c'
|
|
alias wget='wget -c'
|
|
|
|
alias xdebug='XDEBUG_CONFIG="remote_host=127.0.0.1 remote_port=9003"'
|
|
|
|
### conditionals
|
|
|
|
[ -x "$(command -v bat)" ] && alias cat='bat -pp'
|
|
|
|
[ -x "$(command -v exa)" ] && alias ls='exa -lhF --git --icons --color=always --color-scale --time-style=long-iso --group-directories-first'
|
|
|
|
[ -x "$(command -v rmtrash)" ] && alias rm='rmtrash'
|
|
[ -x "$(command -v rmdirtrash)" ] && alias rmdir='rmdirtrash'
|
|
|
|
[ -f "$HOME/.config/aliasrc.local" ] && . "$HOME/.config/aliasrc.local"
|