aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-02-08 20:22:02 -0500
committerMitch Riedstra <mitch@riedstra.us>2018-02-08 20:22:02 -0500
commit1b90b7a843b46f6a3e2f695804e351d7ded44848 (patch)
tree69bc794a9433d4f6bd46ece4f32e0b788d63a03b /mkshrc
parent156297140380bf4b46d8058e7e6df0b56637fda4 (diff)
downloaddotfiles-1b90b7a843b46f6a3e2f695804e351d7ded44848.tar.gz
dotfiles-1b90b7a843b46f6a3e2f695804e351d7ded44848.tar.xz
Add in xbps aliases as well as a way to include the mkshrc in the global profile
Diffstat (limited to 'mkshrc')
-rw-r--r--mkshrc8
1 files changed, 8 insertions, 0 deletions
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
}