dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 3fb2f63a55b3f415151d35c26967daf1889b40e1
parent b5e9417106e3b79fc3c9fb502f1c13a96b229c4f
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri,  8 May 2020 11:10:31 -0400

Fix infinite recursion issues with some functions

Diffstat:
Metc/shrc.d/feh.sh | 2+-
Metc/shrc.d/proj.sh | 4++--
Metc/shrc.d/rsync.sh | 2+-
Metc/shrc.d/ssh.sh | 2+-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/etc/shrc.d/feh.sh b/etc/shrc.d/feh.sh @@ -1,5 +1,5 @@ type feh > /dev/null 2>&1 || return feh() { - feh --auto-rotate --scale-down "$@" + command feh --auto-rotate --scale-down "$@" } diff --git a/etc/shrc.d/proj.sh b/etc/shrc.d/proj.sh @@ -1,7 +1,7 @@ proj() { - if [ -d "$HOME/Documents/src/$1" ] + if [ -d "$HOME/src/$1" ] then - cd "$HOME/Documents/src/$1" + cd "$HOME/src/$1" [ ! -r .env ] || . ./.env fi } diff --git a/etc/shrc.d/rsync.sh b/etc/shrc.d/rsync.sh @@ -1,5 +1,5 @@ type rsync > /dev/null 2>&1 || return rsync() { - rsync -C --include=.git "$@" + command rsync -C --include=.git "$@" } diff --git a/etc/shrc.d/ssh.sh b/etc/shrc.d/ssh.sh @@ -1,5 +1,5 @@ ssh() { - $(which ssh) "$@" + command ssh "$@" case $TERM in xterm*|rxvt*|st*|tmux*) printf "\033]0;$LOGNAME@$HOSTNAME\007" ;; esac