From 1b90b7a843b46f6a3e2f695804e351d7ded44848 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 8 Feb 2018 20:22:02 -0500 Subject: Add in xbps aliases as well as a way to include the mkshrc in the global profile --- mkshrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mkshrc') diff --git a/mkshrc b/mkshrc index 64012fe..af09ae7 100644 --- a/mkshrc +++ b/mkshrc @@ -8,6 +8,10 @@ # # Personally I use this with mksh, .mkshrc is auto loaded by mksh +# Nifty little line that will force the script to return if it's not runnking KSH +# Automatically uncommented if installed system-wide with "install_mkshrc_system" +# [ -z "$KSH_VERSION" ] && return + # This will hopefully fix the bullshit with zsh if \ [ $SHELL = "/bin/zsh" ] || \ @@ -134,16 +138,20 @@ setcoloraliases() { setsudoaliases() { if which sudo > /dev/null 2>&1 && [ -x "$(which sudo)" ] ; then # Package managers + # Isn't it amazing how many distros you end up using? alias apt-get='sudo apt-get' alias yum='sudo dnf' alias dnf='sudo dnf' alias pacman='sudo pacman' + alias xbps-install='sudo xbps-install' + alias xbps-remove='sudo xbps-remove' alias pkg='sudo pkg' # Filesystem utilities alias zfs='sudo zfs' alias btrfs='sudo btrfs' alias mount='sudo mount' + alias umount='sudo umount' fi } -- cgit v1.2.3