diff options
Diffstat (limited to '.config/shell/aliasrc')
-rw-r--r-- | .config/shell/aliasrc | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index a26498f..c3d3a13 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -1,13 +1,14 @@ #!/bin/sh # 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 apt apt-get aptitude dpkg su shutdown poweroff reboot cryptsetup ; do - alias $command="sudo $command" +sudo_cmds="mount umount sv apt apt-get aptitude dpkg su shutdown poweroff reboot cryptsetup" +for command in $sudo_cmds; do + alias \$command="sudo \$command" done; unset command # Verbosity and settings that you pretty much just always are going to want. @@ -15,13 +16,13 @@ alias \ cp="cp -iv" \ echo="echo -n" \ journalctl="journalctl -xe" \ - mkd="mkdir -pv" \ + mkdir="mkdir -pv" \ mv="mv -iv" \ rm="logrm -vI" \ - rmd="rmdir -vp" \ + rmdir="rmdir -vp" \ rsync="rsync -vrPlu" \ pstree="pstree -np" \ - less="less -XER" + less="less -XER" \ # Colorize commands when possible. alias \ @@ -32,7 +33,7 @@ alias \ fgrep="fgrep --color=auto" \ grep="grep --color=auto" \ ip="ip -color=auto" \ - ls="ls_new" \ + ls="lsn" \ vdir="vdir --color=auto" \ # Making stuff easy to customize and source automatically @@ -51,24 +52,22 @@ alias \ alias \ ..="cd .." \ b="buku --suggest" \ + bat="batcat" \ bd="buku-dmenu" \ copy="xsel -ib" \ - cs="chadsearch" \ + fd="fdfind" \ lw="librewolf & exit -f" \ moosic="ncmpcpp" \ - ms="mansplain &" \ nbadd='cat >> "$XDG_CONFIG_HOME"/newsboat/urls << EOF' \ - obs="exec /usr/bin/obsidian" \ py="python3" \ sd="sudo shutdown -h now" \ sql="pgcli" \ - tor="cd ~/Downloads/tor-browser/ && ./start-tor-browser.desktop && cd -" \ update="sudo apt update && apt upgrade" \ wttr="curl wttr.in/Wroclaw" \ # Git aliases alias \ - dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME" \ - obsidian="/usr/bin/git --git-dir=$HOME/obsidian --work-tree=$HOME" \ + dotfiles="/usr/bin/git --git-dir=\$HOME/.dotfiles --work-tree=\$HOME" \ + obsidian="/usr/bin/git --git-dir=\$HOME/obsidian --work-tree=\$HOME" \ # Limbo |