diff --git a/home/.bin/gs-create-cluster b/home/.bin/gs-create-cluster old mode 100644 new mode 100755 diff --git a/home/.bin/gs-get-cluster b/home/.bin/gs-get-cluster old mode 100644 new mode 100755 diff --git a/home/.bin/gs-login b/home/.bin/gs-login old mode 100644 new mode 100755 diff --git a/home/.bin/gs-release b/home/.bin/gs-release old mode 100644 new mode 100755 diff --git a/home/.bin/kube-all b/home/.bin/kube-all old mode 100644 new mode 100755 diff --git a/home/.bin/kube-clean-replicasets b/home/.bin/kube-clean-replicasets old mode 100644 new mode 100755 diff --git a/home/.bin/kube-exec b/home/.bin/kube-exec old mode 100644 new mode 100755 diff --git a/home/.bin/kube-forward-all b/home/.bin/kube-forward-all old mode 100644 new mode 100755 diff --git a/home/.bin/kube-logs b/home/.bin/kube-logs old mode 100644 new mode 100755 diff --git a/home/.bin/kube-shell b/home/.bin/kube-shell old mode 100644 new mode 100755 diff --git a/home/.bin/kube-ssh b/home/.bin/kube-ssh old mode 100644 new mode 100755 diff --git a/home/.dotfiles/aliases b/home/.dotfiles/aliases index 54e3282..cc96310 100644 --- a/home/.dotfiles/aliases +++ b/home/.dotfiles/aliases @@ -46,7 +46,7 @@ lt() { git() { if [ "$1" = "take" ]; then # Git clone then cd into new directory _git clone $2 - cd $(basename $2 | sed 's/\.git$//') + cd $(basename -s .git $2) elif [ "$1" = "commit" ]; then # Sign all commits shift _git commit -s $@ diff --git a/install.sh b/install.sh index 88e3f78..667457e 100644 --- a/install.sh +++ b/install.sh @@ -5,6 +5,7 @@ export PATH="/home/linuxbrew/.linuxbrew/bin:/opt/homebrew/bin/:$PATH" GITEMAIL=$(git config --get user.email) [ -d ~/.additional_dotfiles ] || (mkdir -p ~/.additional_dotfiles && touch ~/.additional_dotfiles/credentials) +[ -d /usr/local/share/zsh/site-functions ] || (sudo mkdir -p /usr/local/share/zsh/site-functions && sudo chmod 777 /usr/local/share/zsh/site-functions) # Install homebrew which brew >/dev/null || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" @@ -65,7 +66,7 @@ fulllink() { if [ ! -z `which greadlink` ] then greadlink -f $1 - else + else readlink -f $1 fi } @@ -79,14 +80,14 @@ case "${OSTYPE}" in ;; *darwin*) # Mac specific setup - MAC_BREW_TOOLS=( pinentry-mac gpg gawk coreutils ) + MAC_BREW_TOOLS=( pinentry-mac gpg gawk coreutils wget ) for tool in "${MAC_BREW_TOOLS[@]}" do printf "${tool}..." brew upgrade ${tool} &>/dev/null || brew install ${tool} &>/dev/null printf " ✅\n" done - + FILES=$(find ./os-specific/darwin/home -maxdepth 1 -mindepth 1 | tr '\n' ' ') for file in $FILES @@ -118,4 +119,4 @@ do printf "Linking ${f}=>${dst}" ln -sfn ${f} ${dst} printf " ✅\n" -done \ No newline at end of file +done