From d62f1d1673fc0a319ea4581dee0f6085b1f70005 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 2 Oct 2019 16:35:18 +0200 Subject: Add shell configs --- .config/shell/aliases.d/generic | 44 ++++++++++++++++++++++++++++++++++++ .config/shell/aliases.d/linux | 8 +++++++ .config/shell/aliases.d/linux-funtoo | 5 ++++ 3 files changed, 57 insertions(+) create mode 100644 .config/shell/aliases.d/generic create mode 100644 .config/shell/aliases.d/linux create mode 100644 .config/shell/aliases.d/linux-funtoo (limited to '.config/shell/aliases.d') diff --git a/.config/shell/aliases.d/generic b/.config/shell/aliases.d/generic new file mode 100644 index 0000000..74c9cb6 --- /dev/null +++ b/.config/shell/aliases.d/generic @@ -0,0 +1,44 @@ +#!/usr/bin/env sh +# Author: Patrick Spek +# License: BSD 3-clause license + +# this should fix sudo with aliases +alias sudo="sudo " + +# docker aliases +alias dc="docker-compose" +alias dcu="docker-compose up" + +# musicplayer aliases {{{ +alias ma="mpc add" +alias mh="ncmpcpp --host" +alias mp="mpc toggle > /dev/null" +# }}} + +# tmux aliases {{{ +alias t="tmux -2 -f ~/.config/tmux/conf -u" +# }}} + +# virsh aliases {{{ +alias v="virsh --connect qemu:///system" +alias vc="v console" +alias vl="v list --all" +alias vp="v suspend" +alias vr="v resume" +alias vs="v start" +# }}} + +# other aliases {{{ +alias :q="exit" +alias ag="ag --color-line-number '0;33' --color-match '1;31' --color-path '1;33' --smart-case" +alias bc="bc -i ~/.config/bcrc" +alias cpan6="perl6 -I ~/projects/scriptkitties/perl6-App-Cpan6/lib -I ~/projects/private/perl6-JSON-Fast/lib ~/projects/scriptkitties/perl6-App-Cpan6/bin/cpan6" +alias g="grep --color=always -i" +alias links-g="links -g" # Termite cant deal with it if its an argument +alias muttman="~/projects/rb/muttman/src/muttman" +alias p="ps -A -o pid,comm | grep -i" +alias rcopy="rsync --append-verify --info=ALL,PROGRESS -ar" +alias slideshow="feh -zsZ.D 5" +alias wifiman="wicd-curses" +alias parescan="pacmd unload-module module-udev-detect && pacmd load-module module-udev-detect" +# }}} diff --git a/.config/shell/aliases.d/linux b/.config/shell/aliases.d/linux new file mode 100644 index 0000000..a744c93 --- /dev/null +++ b/.config/shell/aliases.d/linux @@ -0,0 +1,8 @@ +#!/usr/bin/env sh +# Author: Patrick Spek +# License: BSD 3-clause license + +# general purpose +alias l="ls -Fhl --color=auto" +alias ll="ls -Fahl --color=auto" + diff --git a/.config/shell/aliases.d/linux-funtoo b/.config/shell/aliases.d/linux-funtoo new file mode 100644 index 0000000..3c417a7 --- /dev/null +++ b/.config/shell/aliases.d/linux-funtoo @@ -0,0 +1,5 @@ +#!/usr/bin/env sh +# Author: Patrick Spek +# License: BSD 3-clause license + +alias dist-upgrade="sudo emerge --keep-going -uDN @world" -- cgit v1.1