dotfiles

A steaming hot pile of sh...ell scripts and configuration files.
git clone https://kaka.farm/~git/dotfiles
Log | Files | Refs

commit b79a83fbc4cbbef2dee3c53dc855caf618229d49
parent cb9c65cdeb9947aad049fe987b1916b2d67d524c
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Mon, 27 May 2024 19:48:42 +0300

Add a few bash aliases and comment a few others.

Diffstat:
Mbash/bash_aliases | 86+++++++++++++++++++++++++++++++++++++++++--------------------------------------
1 file changed, 45 insertions(+), 41 deletions(-)

diff --git a/bash/bash_aliases b/bash/bash_aliases @@ -4,9 +4,9 @@ if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors if [[ $? == 0 ]]; then - eval "$(dircolors -b ~/.dircolors)"; + eval "$(dircolors -b ~/.dircolors)" else - eval "$(dircolors -b)" + eval "$(dircolors -b)" fi alias ls='ls --color=auto' #alias dir='dir --color=auto' @@ -24,7 +24,7 @@ alias l='ls -CF' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert -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$//'\'')"' +# 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$//'\'')"' alias g=git alias gl='g l' @@ -32,48 +32,52 @@ alias gs='g s' alias gc='g c' alias gd='g d' -alias ec="emacsclient" - alias hebdate="hdate --hebrew|cut -f 3 -d ','|grep -v '^$'" -alias emptify="truncate -c -s 0" +# alias emptify="truncate -c -s 0" -function pip3fr () { pip3 freeze --user; } -function pip3i () { pip3 install --user --upgrade $@; } -function pip3up () { pip3i "$( pip3fr | sed 's#==.*##' )"; } -function pip3un () { pip3 uninstall "$*"; } +# function pip3fr () { pip3 freeze --user; } +# function pip3i () { pip3 install --user --upgrade $@; } +# function pip3up () { pip3i "$( pip3fr | sed 's#==.*##' )"; } +# function pip3un () { pip3 uninstall "$*"; } # http://cs-syd.eu/posts/2015-06-21-gtd-with-taskwarrior-part-2-collection.html -function inn () { task add +in $@; } -function tickle () { - deadline="$1" - shift - inn +tickle wait:"$deadline" "$*" -} -alias tick=tickle -alias think='tickle +1d' +# function inn () { task add +in $@; } +# function tickle () { +# deadline="$1" +# shift +# inn +tickle wait:"$deadline" "$*" +# } +# alias tick=tickle +# alias think='tickle +1d' -alias tracli="transmission-remote-cli" -alias trarem="transmission-remote" +# alias tracli="transmission-remote-cli" +# alias trarem="transmission-remote" -function ppgrep () -{ - if [[ $1 == "" ]]; - then - PERCOL=percol - else - PERCOL="percol --query $1" - fi - ps aux | eval "$PERCOL" | awk '{ print $2 }' -} +# function ppgrep () +# { +# if [[ $1 == "" ]]; +# then +# PERCOL=percol +# else +# PERCOL="percol --query $1" +# fi +# ps aux | eval "$PERCOL" | awk '{ print $2 }' +# } +# +# function ppkill () +# { +# if [[ $1 =~ ^- ]]; +# then +# QUERY="" +# else +# QUERY=$1 +# [[ $# -gt 0 ]] && shift +# fi +# ppgrep $QUERY | xargs kill $* +# } -function ppkill () -{ - if [[ $1 =~ ^- ]]; - then - QUERY="" - else - QUERY=$1 - [[ $# -gt 0 ]] && shift - fi - ppgrep $QUERY | xargs kill $* -} +# alias yuvallanger="chromium --user-data-dir=~/.chromium-google-yuvallanger" +# alias ontheroad="chromium --user-data-dir=~/.chromium-google-ontheroad" +# alias dark='gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark && gsettings set org.gnome.desktop.interface color-scheme prefer-dark' +# alias light='gsettings set org.gnome.desktop.interface gtk-theme Adwaita && gsettings set org.gnome.desktop.interface color-scheme prefer-light' +alias g=git