mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
Evaluate aliases at runtime (#1456)
This commit is contained in:
parent
1e750084e5
commit
70ee0fe03f
@ -4,9 +4,9 @@
|
|||||||
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
|
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
|
||||||
|
|
||||||
# Use $XINITRC variable if file exists.
|
# 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
|
# sudo not required for some system commands
|
||||||
for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
|
for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
|
||||||
@ -47,8 +47,8 @@ alias \
|
|||||||
trem="transmission-remote" \
|
trem="transmission-remote" \
|
||||||
YT="youtube-viewer" \
|
YT="youtube-viewer" \
|
||||||
sdn="shutdown -h now" \
|
sdn="shutdown -h now" \
|
||||||
e="$EDITOR" \
|
e='$EDITOR' \
|
||||||
v="$EDITOR" \
|
v='$EDITOR' \
|
||||||
p="pacman" \
|
p="pacman" \
|
||||||
xi="sudo xbps-install" \
|
xi="sudo xbps-install" \
|
||||||
xr="sudo xbps-remove -R" \
|
xr="sudo xbps-remove -R" \
|
||||||
@ -58,4 +58,4 @@ alias \
|
|||||||
alias \
|
alias \
|
||||||
lf="lfub" \
|
lf="lfub" \
|
||||||
magit="nvim -c MagitOnly" \
|
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'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user