summaryrefslogtreecommitdiffstats
path: root/.config/shell
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell')
-rw-r--r--.config/shell/aliasrc6
-rw-r--r--.config/shell/profile2
2 files changed, 7 insertions, 1 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 6ad7a8b..107ecb8 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -6,6 +6,11 @@
# Use $XINITRC variable if file exists.
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
+# sudo not required for some system commands
+for x in mount umount sv pacman updatedb su ; do
+ alias $x="sudo $x"
+done
+
# Verbosity and settings that you pretty much just always are going to want.
alias \
cp="cp -iv" \
@@ -31,7 +36,6 @@ alias \
trem="transmission-remote" \
YT="youtube-viewer" \
sdn="sudo shutdown -h now" \
- f="$FILE" \
e="$EDITOR" \
v="$EDITOR" \
p="sudo pacman" \
diff --git a/.config/shell/profile b/.config/shell/profile
index d075418..9515179 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -40,6 +40,8 @@ export ANSIBLE_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/ansible/ansible.cfg"
export UNISON="${XDG_DATA_HOME:-$HOME/.local/share}/unison"
export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history"
export WEECHAT_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/weechat"
+export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config"
+export ELECTRUMDIR="${XDG_DATA_HOME:-$HOME/.local/share}/electrum"
# Other program settings:
export DICS="/usr/share/stardict/dic/"