diff options
Diffstat (limited to '')
-rw-r--r-- | shrc | 32 |
1 files changed, 9 insertions, 23 deletions
@@ -11,12 +11,14 @@ alias doc="dedoc --color off search" alias kill-sessions="tmux kill-session -a" alias restart-wifi="doas /usr/sbin/service netif restart" alias de='. ./.envrc' +alias logdate='date +"%Y-%m-%d"' +alias snapshothome='doas zfs snapshot zroot/home@$(logdate)' +alias commit-all="git add . && git commit -m '.' && git push" optimizeimg() { - convert -strip -quality 85% $1 $2 + magick -strip -quality 85% $1 $2 } - killunattached() { tmux list-sessions -F '#{session_attached} #{session_id}' | \ awk '/^0/{print $2}' | \ @@ -27,7 +29,6 @@ refs() { recsel -q $1 ~/personal-db/refs.rec } -# Remove trailing newlines cleartrail() { cat $1 | tr -d '\n' } @@ -37,31 +38,16 @@ addref() { cat /tmp/description | xargs -I {} recins refs.rec -f Title -v $1 -f Tags -v $2 -f Text -v {} } -isrootprompt() { - CURR="$(id -u)" - case "$CURR" in - "0") echo "#" - ;; - *) echo "$" - ;; - esac -} - notes() { grep -i "$1" --format='%f%~' ~/notes/ | xargs -I {} cat {} } + . /home/mccd/.nix-profile/etc/profile.d/nix.sh -echo "BAT: $(apm -l), $(apm -b)" - -set -o vi +alias a='pwd' -eval "$(direnv hook bash)" - -PS1='${PWD##*/} $(isrootprompt) ' eval "$(zoxide init posix --hook prompt)" - - - -[ $(tty) == "/dev/ttyv0" ] && exec startx +if [ "$(tty)" = "/dev/tty1" ]; then + exec startx +fi |