From 1841878b94407547eab232922ba9015a7aaa4da7 Mon Sep 17 00:00:00 2001 From: jon Date: Sun, 30 Oct 2022 18:28:19 -0500 Subject: [PATCH] fixed/added some bash aliases and terminal alpha --- bash/.bashrc | 12 +++++++----- x/.Xresources | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index a457215..e429c4b 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -23,9 +23,11 @@ export LESS='-C -M -j 3 -R -# 2' alias l.='ls -lh --time-style=long-iso --color' 2>/dev/null alias l='ls -lh --color --time-style=long' alias ll='ls -lAh --color --time-style=long' -alias lsd='l -d */' +alias ld='l -d */' +alias lt='ls -lht' +alias ltr='ls -lhtr' alias p='ping' -alias ip='ip -c' +alias ip='ip -br a' #alias s='sudo $(history -p !!)' alias s='sudo' alias df='sudo df -hT -x tmpfs -x devtmpfs' @@ -65,7 +67,6 @@ else export EDITOR=/usr/bin/vim fi - # so stupid, systemd ignores EDITOR and requires its own env variable # just set it to whatever editor is export SYSTEMD_EDITOR=$EDITOR @@ -117,6 +118,8 @@ stopwatch () { date1=`date +%s`; while true; do echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r"; done } +# call with number of seconds, will notify when done. +# eg, for 10 minutes: $ timer 600 timer() { start="$(( $(date '+%s') + $1))" while [ $start -ge $(date +%s) ]; do @@ -155,6 +158,7 @@ n () fi } +# ex will unarchive intelligently using the correct tool ex() { local c e i @@ -194,5 +198,3 @@ ex() { return "$e" } -# turn off incredibly annoying bell -#xset b off diff --git a/x/.Xresources b/x/.Xresources index 78a799b..575da0b 100644 --- a/x/.Xresources +++ b/x/.Xresources @@ -9,8 +9,8 @@ URxvt.cursorUnderline: 1 !!! Real transparency (compositing) URxvt.depth: 32 -!URxvt*background: rgba:0000/0000/0200/c800 -URxvt*background: rgba:0000/0000/0200/EA60 +URxvt*background: rgba:0001/0000/0200/c800 +!URxvt*background: rgba:0000/0000/0200/EA60 URxvt*perl-ext-common: default,matcher URxvt*matcher.button: 1