config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

commit 859e9c84cee2b256a761cbe05c2defe55771ebf7
parent 5838473ebc3b237e945378b72d6d63be6543406e
Author: dwrz <dwrz@dwrz.net>
Date:   Sat, 21 Oct 2023 20:53:10 +0000

Update bashrc

Diffstat:
Mbash/bashrc | 13++-----------
1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/bash/bashrc b/bash/bashrc @@ -25,12 +25,14 @@ icon_xmark="\342\234\227" no_color="\[\e[00m\\]" # Aliases +alias adb="HOME=\"${XDG_DATA_HOME}\"/android adb" alias aoeu="setxkbmap us" alias asdf="setxkbmap dvorak; xmodmap ~/.config/X11/xmodmap" alias cal="cal --monday --iso --week" alias caps="xdotool key Caps_Lock" alias cp="cp -i" alias cpwd="pwd | tr -d '\n' | xclip" +alias d="datetime" alias df="df -h" alias diff="diff --color=auto" alias dirdu="du -cksh * | sort -hr" @@ -69,17 +71,6 @@ alias timers="systemctl --user -all list-timers" alias unread="notmuch search tag:unread" # Functions -d() { - case "$1" in - "iso") date '+%Y-%m-%dT%H:%M:%S%:z' | tee /dev/tty | xclip ;; - "mime") date '+%a, %d %b %Y %H:%M:%S %z' | tee /dev/tty | xclip ;; - "unix") date +%s | xclip ;; - # u2h coverts UNIX to ISO. - "u2h") date -d "@$2" '+%Y-%m-%dT%H:%M:%S%:z' | tee /dev/tty | xclip ;; - *) date "$@" | xclip - esac -} - ## fd: find directories fd() { find . -type d -iname '*'"$*"'*' -ls ;