summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@kelar.org>2024-07-02 20:26:44 -0400
committerAmin Bandali <bandali@kelar.org>2024-07-02 20:27:48 -0400
commite41121c3bef2e8b37ad05209d784aad26b16a813 (patch)
tree38409b6762e02591e655f3e85d300abecbd6aae2
parenta11301d3da81b87e08348e27706c53e61195dca3 (diff)
downloadconfigs-e41121c3bef2e8b37ad05209d784aad26b16a813.tar.gz
configs-e41121c3bef2e8b37ad05209d784aad26b16a813.tar.xz
configs-e41121c3bef2e8b37ad05209d784aad26b16a813.zip
Various bash alias updates
-rw-r--r--.bashrc35
1 files changed, 22 insertions, 13 deletions
diff --git a/.bashrc b/.bashrc
index 8b6ccc0..dd61a06 100644
--- a/.bashrc
+++ b/.bashrc
@@ -78,7 +78,7 @@ HISTFILESIZE=
HISTCONTROL=ignoreboth
# ignore a few very common commands and don't add them to history
#HISTIGNORE='ls:l:ll:s:g:[bf]g:history:da:li'
-HISTIGNORE='sr'
+HISTIGNORE='sc:sr*'
HISTTIMEFORMAT='%F %T '
stty stop ""
@@ -118,31 +118,40 @@ if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
+# listing
alias ls='ls --color=auto'
-alias l='ls -Flh' # long format and human-readable sizes
-alias ll='l -a' # long format, all files
+alias l='ls -Fl' # long format
+alias ll='l -a' # all files
+alias llh='ll -h' # human-readable sizes
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
+# cp/mv confirmation and verbosity
+alias cp="cp -iv"
+alias mv="mv -iv"
+# grep
alias grep='grep --color=auto'
alias egrep='grep -E --color=auto'
alias fgrep='grep -F --color=auto'
-# alias mpv="mpv --ytdl-format=mp4"
-alias mv="mv -iv"
-alias cp="cp -iv"
+# mpv
+alias mpv="mpv --ytdl-format=mp4"
+alias mpva="mpv --ytdl-format=bestaudio"
+# mail
alias mbsync='mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc'
alias getmail='getmail --getmaildir "$XDG_CONFIG_HOME"/getmail --rcfile getmailrc'
alias m="mbsync csclub; mbsync kelar; mbsync shemshak; mbsync gnub; getmail"
alias mc="mbsync canonical; m"
-# alias e="$EDITOR"
-alias se="SUDO_EDITOR=\"emacsclient\" sudo -e"
-
-alias alert='notify-send --urgency=low \
--i "$([ $? = 0 ] && echo terminal || echo error)" \
-"$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
-
+# theme
alias da='change-theme dark'
alias li='change-theme light'
+# sway
alias sr='sway-run'
+alias srr='sway-run-remote'
+alias srw='export WAYLAND_DISPLAY=wayland-1; wayvnc'
+# misc
+alias sc='screen'
+alias alert='notify-send --urgency=low \
+-i "$([ $? = 0 ] && echo terminal || echo error)" \
+"$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
bash_completions_dir=/usr/share/bash-completion/completions/