summaryrefslogtreecommitdiff
path: root/.config/bash/aliases.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/bash/aliases.sh')
-rw-r--r--.config/bash/aliases.sh11
1 files changed, 3 insertions, 8 deletions
diff --git a/.config/bash/aliases.sh b/.config/bash/aliases.sh
index c9a1987..fe4f2c6 100644
--- a/.config/bash/aliases.sh
+++ b/.config/bash/aliases.sh
@@ -43,16 +43,11 @@ alias gitk='gitk --all --date-order'
alias userctl='systemctl --user'
######################################################################
-# Remember lat/long for redshift #
-######################################################################
-redshift='redshift -l39.9030:85.9979'
-alias gtk-redshift="gtk-$redshift"
-alias redshift="$redshift"
-unset redshift
-
-######################################################################
# Some almost-function aliases #
######################################################################
alias lock="clear; away -C 'This terminal is locked'"
alias plock="term-title Terminal Locked;lock"
mvln() { mv $1 $2; ln -s $2 $1; }
+jarls() { jar tf "$1" | sed -n 's/\.class$//p' | LC_ALL=C sort | xargs -r -d $'\n' javap -classpath "$1"; }
+tarls() { local file; for file in "$@"; do bsdtar tf "$file" | sed "s|^|$file:|"; done; }
+jarmain() { jarls "$1" 2>/dev/null | grep -E '(^[a-z]|public static void main\(java\.lang\.String\[\]\))' | grep -B1 '^ '; }