fixed/added some bash aliases and terminal alpha
This commit is contained in:
12
bash/.bashrc
12
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 --time-style=long-iso --color' 2>/dev/null
|
||||||
alias l='ls -lh --color --time-style=long'
|
alias l='ls -lh --color --time-style=long'
|
||||||
alias ll='ls -lAh --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 p='ping'
|
||||||
alias ip='ip -c'
|
alias ip='ip -br a'
|
||||||
#alias s='sudo $(history -p !!)'
|
#alias s='sudo $(history -p !!)'
|
||||||
alias s='sudo'
|
alias s='sudo'
|
||||||
alias df='sudo df -hT -x tmpfs -x devtmpfs'
|
alias df='sudo df -hT -x tmpfs -x devtmpfs'
|
||||||
@@ -65,7 +67,6 @@ else
|
|||||||
export EDITOR=/usr/bin/vim
|
export EDITOR=/usr/bin/vim
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# so stupid, systemd ignores EDITOR and requires its own env variable
|
# so stupid, systemd ignores EDITOR and requires its own env variable
|
||||||
# just set it to whatever editor is
|
# just set it to whatever editor is
|
||||||
export SYSTEMD_EDITOR=$EDITOR
|
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
|
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() {
|
timer() {
|
||||||
start="$(( $(date '+%s') + $1))"
|
start="$(( $(date '+%s') + $1))"
|
||||||
while [ $start -ge $(date +%s) ]; do
|
while [ $start -ge $(date +%s) ]; do
|
||||||
@@ -155,6 +158,7 @@ n ()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ex will unarchive intelligently using the correct tool
|
||||||
ex() {
|
ex() {
|
||||||
local c e i
|
local c e i
|
||||||
|
|
||||||
@@ -194,5 +198,3 @@ ex() {
|
|||||||
return "$e"
|
return "$e"
|
||||||
}
|
}
|
||||||
|
|
||||||
# turn off incredibly annoying bell
|
|
||||||
#xset b off
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ URxvt.cursorUnderline: 1
|
|||||||
|
|
||||||
!!! Real transparency (compositing)
|
!!! Real transparency (compositing)
|
||||||
URxvt.depth: 32
|
URxvt.depth: 32
|
||||||
!URxvt*background: rgba:0000/0000/0200/c800
|
URxvt*background: rgba:0001/0000/0200/c800
|
||||||
URxvt*background: rgba:0000/0000/0200/EA60
|
!URxvt*background: rgba:0000/0000/0200/EA60
|
||||||
|
|
||||||
URxvt*perl-ext-common: default,matcher
|
URxvt*perl-ext-common: default,matcher
|
||||||
URxvt*matcher.button: 1
|
URxvt*matcher.button: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user