This commit is contained in:
jon
2022-08-07 14:32:39 -05:00
4 changed files with 37 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ alias df='sudo df -hT -x tmpfs -x devtmpfs'
alias rsync='rsync --progress'
alias lg='ll | grep -i $0'
bind 'set completion-ignore-case on'
#bind 'set completion-ignore-case on'
set bell-style none
## function and alias for short find
@@ -57,10 +57,12 @@ export PATH=$GOPATH:$GOPATH/bin:$PATH
# use vimx if available (for clipboard support)
if [ -f "/usr/bin/vimx" ]; then
export EDITOR=/usr/bin/vimx
alias vim=/usr/bin/vimx
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
@@ -107,6 +109,21 @@ if [ -f /usr/share/fzf/shell/key-bindings.bash ]; then
source /usr/share/fzf/shell/key-bindings.bash
fi
#this is a stopwatch function, call with: $ stopwatch
stopwatch () {
date1=`date +%s`; while true; do echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r"; done
}
timer() {
start="$(( $(date '+%s') + $1))"
while [ $start -ge $(date +%s) ]; do
time="$(( $start - $(date +%s) ))"
printf '%s\r' "$(date -u -d "@$time" +%H:%M:%S)"
sleep 0.1
done
notify-send "Timer Finished" "Timer Finished - $1 seconds elapsed"
}
n ()
{
# Block nesting of nnn in subshells
@@ -175,3 +192,4 @@ ex() {
}
# turn off incredibly annoying bell
#xset b off