summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorAlessio Artoni <34690870+aartoni@users.noreply.github.com>2025-03-06 22:47:02 +0100
committerGitHub <noreply@github.com>2025-03-06 21:47:02 +0000
commit70ee0fe03f7231f8b37b229cc1c2066e1b639466 (patch)
tree946a73a6dda14b2f95e68c3c0c022f7bef27588b /.config
parent1e750084e5194375002433e3aee554814beef4c1 (diff)
downloadeibhear-70ee0fe03f7231f8b37b229cc1c2066e1b639466.tar.gz
eibhear-70ee0fe03f7231f8b37b229cc1c2066e1b639466.tar.zst
eibhear-70ee0fe03f7231f8b37b229cc1c2066e1b639466.zip
Evaluate aliases at runtime (#1456)
Diffstat (limited to '.config')
-rw-r--r--.config/shell/aliasrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 5347fcd..c9ddbc4 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -4,9 +4,9 @@
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
# Use $XINITRC variable if file exists.
-[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
+[ -f "$XINITRC" ] && alias startx='startx $XINITRC'
-[ -f "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC"
+[ -f "$MBSYNCRC" ] && alias mbsync='mbsync -c $MBSYNCRC'
# sudo not required for some system commands
for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
@@ -47,8 +47,8 @@ alias \
trem="transmission-remote" \
YT="youtube-viewer" \
sdn="shutdown -h now" \
- e="$EDITOR" \
- v="$EDITOR" \
+ e='$EDITOR' \
+ v='$EDITOR' \
p="pacman" \
xi="sudo xbps-install" \
xr="sudo xbps-remove -R" \
@@ -58,4 +58,4 @@ alias \
alias \
lf="lfub" \
magit="nvim -c MagitOnly" \
- ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"
+ ref='shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc'