From 12dc96093b796187f3f39f20fb7ef3e350a2da57 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Sun, 9 Sep 2018 19:57:00 +0200 Subject: [PATCH] Add alias for taskwarrior A shortcut alias `t` for taskwarrior (1) should be added. This also includes the renaming of the current `t` alias of trash-cli (2) to `trm`. References: (1) https://taskwarrior.org (2) https://github.com/andreafrancia/trash-cli Closes GH-126 --- snowblocks/bash/core/aliases | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/snowblocks/bash/core/aliases b/snowblocks/bash/core/aliases index d0a3eec..745c220 100644 --- a/snowblocks/bash/core/aliases +++ b/snowblocks/bash/core/aliases @@ -22,6 +22,13 @@ alias sbrd='mvn spring-boot:run -Drun.jvmArguments="-agentlib:jdwp=transport=dt_ # +--- pacman ---+ alias pacman='pacman --config ~/.pacman.conf' +# +--- trash-cli ---+ +# Shortcut to move a file into the trash. +alias trm='trash' + +# +--- taskwarrior ---+ +alias t='task' + # +--- wget ---+ # Disable log file alias wget='wget --hsts-file=' @@ -60,12 +67,11 @@ alias date='date "+%Y-%m-%d %H:%M:%S UTC%z"' alias lsraw='LC_COLLATE=C \ls -N1 --group-directories-first' # Shorthand for alias to -# -# * only display ANSI "color" escape sequences in "raw" form. (-R, --RAW-CONTROL-CHARS) -# * automatically exit if the entire file can be displayed on the first screen. (-F, --quit-if-one-screen) -# * disable sending the termcap (de)initialization strings to the terminal to avoid unnecessary operations like -# clearing the screen. (-X, --no-init) -# * use two tab stops. (-x2, --tabs=n) +# * only display ANSI "color" escape sequences in "raw" form. (-R, --RAW-CONTROL-CHARS) +# * automatically exit if the entire file can be displayed on the first screen. (-F, --quit-if-one-screen) +# * disable sending the termcap (de)initialization strings to the terminal to avoid unnecessary operations like +# clearing the screen. (-X, --no-init) +# * use two tab stops. (-x2, --tabs=n) alias less='less -RFXx2' # Show mode bits of files and directories in ocal form, @@ -80,6 +86,3 @@ alias lsm='stat -c "%A %a %N"' # +-------+ # Alert via notify for long running commands. 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$//'\'')"' - -# Shortcut for "trash-cli" to move a file into the trash. -alias t='trash'