2021-04-01 17:00:33 +00:00
|
|
|
#!/bin/sh
|
2020-01-12 00:54:38 +00:00
|
|
|
|
2022-09-13 21:37:01 +00:00
|
|
|
alias .f='git --git-dir="$HOME/.dotfiles"'
|
2023-02-26 23:14:19 +00:00
|
|
|
alias .hf='git --git-dir="$HOME/.hostfiles"'
|
2022-10-21 22:58:24 +00:00
|
|
|
alias :q='exit'
|
|
|
|
alias :wq='exit'
|
2020-09-27 10:10:50 +00:00
|
|
|
|
2021-09-29 16:47:50 +00:00
|
|
|
alias aliases='$EDITOR ~/.config/aliasrc && . ~/.config/aliasrc'
|
2021-09-29 16:50:23 +00:00
|
|
|
alias aliases.local='$EDITOR ~/.config/aliasrc.local && . ~/.config/aliasrc'
|
2022-12-20 00:13:59 +00:00
|
|
|
# shellcheck disable=2154
|
2022-12-22 14:05:43 +00:00
|
|
|
alias arch-deps2deps='set -a; source PKGBUILD; set +a; paru -S --asdeps --noconfirm $depends && paru -Ui --rebuild'
|
2021-07-21 22:37:11 +00:00
|
|
|
alias artisan='./artisan'
|
2019-12-20 11:22:51 +00:00
|
|
|
|
2022-01-30 20:29:23 +00:00
|
|
|
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'
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2021-03-19 10:55:52 +00:00
|
|
|
alias clip='xclip -selection clipboard'
|
2021-02-13 21:52:08 +00:00
|
|
|
alias cp='cp -iv'
|
2020-09-26 22:28:51 +00:00
|
|
|
|
2019-12-20 11:22:51 +00:00
|
|
|
alias df='df -h'
|
2022-12-20 00:13:59 +00:00
|
|
|
alias dns-flush='sudo systemctl restart systemd-resolved.service && sudo systemd-resolve --flush-caches && sudo resolvectl flush-caches'
|
2021-01-31 13:42:35 +00:00
|
|
|
alias doas='doas -- '
|
2021-02-19 12:02:34 +00:00
|
|
|
alias doasu='\doas -u '
|
2022-11-13 22:22:21 +00:00
|
|
|
alias docker-caddy-reload='docker compose exec app sh -c "caddy validate --config /etc/caddy/Caddyfile && caddy reload --config /etc/caddy/Caddyfile"'
|
2020-06-26 16:21:39 +00:00
|
|
|
alias du='du -h'
|
2019-12-20 11:22:51 +00:00
|
|
|
|
2020-08-18 09:40:28 +00:00
|
|
|
alias free='free -h'
|
|
|
|
|
2022-03-19 10:33:43 +00:00
|
|
|
alias git-apply-clip='clip -out | base64 -d | git apply -'
|
2020-09-26 22:28:51 +00:00
|
|
|
alias grep='grep --color=auto'
|
2021-02-23 15:33:23 +00:00
|
|
|
alias grep-highlight='grep -e "^" -e'
|
2019-12-20 11:22:51 +00:00
|
|
|
|
2020-08-28 10:53:09 +00:00
|
|
|
alias hist-grep='history 0 | grep '
|
2020-03-01 15:12:18 +00:00
|
|
|
|
2021-04-16 10:07:15 +00:00
|
|
|
alias icat="kitty +kitten icat"
|
2021-03-19 10:55:52 +00:00
|
|
|
alias ip='ip -c'
|
|
|
|
|
2021-01-04 15:34:53 +00:00
|
|
|
alias j='jump'
|
|
|
|
|
2022-10-24 14:57:31 +00:00
|
|
|
alias keepass-unlock='(pkill keepassxc; pass keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx) & disown'
|
2022-04-02 13:41:29 +00:00
|
|
|
|
2022-07-29 17:22:47 +00:00
|
|
|
alias less='less -FS -x4'
|
2021-02-13 21:52:08 +00:00
|
|
|
alias ls='ls -lFh --color=auto'
|
2022-12-22 14:05:43 +00:00
|
|
|
alias lsblk='lsblk -o +LABEL,FSTYPE'
|
2019-12-20 11:22:51 +00:00
|
|
|
|
2020-07-15 13:50:56 +00:00
|
|
|
alias make='make -j5'
|
2021-02-13 21:52:08 +00:00
|
|
|
alias mkdir='mkdir -pv'
|
|
|
|
alias mv='mv -iv'
|
2019-12-20 11:22:51 +00:00
|
|
|
|
2022-12-14 14:26:53 +00:00
|
|
|
alias nixos-rebuild-tinker='sudo nixos-rebuild switch -p tinkering --no-build-nix'
|
|
|
|
|
|
|
|
alias pacman-autoremove='sudo pacman -Rns $(pacman -Qtdq)'
|
2022-12-23 00:12:17 +00:00
|
|
|
alias pacman-autoremove-opts='sudo pacman -Rns $(pacman -Qttdq)'
|
2021-10-23 09:02:47 +00:00
|
|
|
alias ps-grep='ps aux | grep -v grep | grep'
|
2019-12-20 11:22:51 +00:00
|
|
|
|
2021-02-23 15:33:23 +00:00
|
|
|
alias qutebrowser-kiosk='qutebrowser -B $XDG_DATA_HOME/qutebrowser-kiosk -C $XDG_CONFIG_HOME/qutebrowser/config-kiosk.py'
|
2020-10-07 11:53:05 +00:00
|
|
|
|
2020-08-18 09:40:28 +00:00
|
|
|
alias rm='rm -I --one-file-system -v'
|
2020-12-26 15:28:16 +00:00
|
|
|
|
2021-08-10 14:45:38 +00:00
|
|
|
alias sail='bash vendor/bin/sail'
|
2022-10-13 12:43:07 +00:00
|
|
|
alias sl='ls'
|
2020-12-26 15:28:16 +00:00
|
|
|
alias sudo='sudo '
|
2020-12-30 16:41:09 +00:00
|
|
|
|
2022-10-17 19:37:38 +00:00
|
|
|
alias tokei='tokei --hidden'
|
|
|
|
|
2021-04-30 14:31:30 +00:00
|
|
|
alias watch='watch -c'
|
2021-02-13 21:52:08 +00:00
|
|
|
alias wget='wget -c'
|
|
|
|
|
2021-10-23 09:02:47 +00:00
|
|
|
alias xdebug='XDEBUG_CONFIG="remote_host=127.0.0.1 remote_port=9003"'
|
|
|
|
|
2020-12-30 16:41:09 +00:00
|
|
|
### conditionals
|
|
|
|
|
|
|
|
[ -x "$(command -v bat)" ] && alias cat='bat -pp'
|
|
|
|
|
2022-09-13 19:28:05 +00:00
|
|
|
[ -x "$(command -v exa)" ] && alias ls='exa -lhF --git --icons --color=always --color-scale --time-style=long-iso --group-directories-first'
|
2021-04-16 15:37:17 +00:00
|
|
|
|
2022-12-13 01:28:43 +00:00
|
|
|
[ -x "$(command -v moar)" ] && alias less='moar'
|
|
|
|
|
2022-07-21 15:47:25 +00:00
|
|
|
[ -x "$(command -v rmtrash)" ] && alias rm='rmtrash'
|
|
|
|
[ -x "$(command -v rmdirtrash)" ] && alias rmdir='rmdirtrash'
|
|
|
|
|
2021-09-29 16:47:50 +00:00
|
|
|
[ -f "$HOME/.config/aliasrc.local" ] && . "$HOME/.config/aliasrc.local"
|