From 09248c19cd66dd424fe5bb67cc94e94320f5893a Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 3 Dec 2021 18:20:33 +0000 Subject: [PATCH] Fix exec perm Signed-off-by: Marcus Noble --- home/.bin/gs-create-cluster | 0 home/.bin/gs-get-cluster | 0 home/.bin/gs-login | 0 home/.bin/gs-release | 0 home/.bin/kube-all | 0 home/.bin/kube-clean-replicasets | 0 home/.bin/kube-exec | 0 home/.bin/kube-forward-all | 0 home/.bin/kube-logs | 0 home/.bin/kube-shell | 0 home/.bin/kube-ssh | 0 home/.dotfiles/aliases | 2 +- install.sh | 9 +++++---- 13 files changed, 6 insertions(+), 5 deletions(-) mode change 100644 => 100755 home/.bin/gs-create-cluster mode change 100644 => 100755 home/.bin/gs-get-cluster mode change 100644 => 100755 home/.bin/gs-login mode change 100644 => 100755 home/.bin/gs-release mode change 100644 => 100755 home/.bin/kube-all mode change 100644 => 100755 home/.bin/kube-clean-replicasets mode change 100644 => 100755 home/.bin/kube-exec mode change 100644 => 100755 home/.bin/kube-forward-all mode change 100644 => 100755 home/.bin/kube-logs mode change 100644 => 100755 home/.bin/kube-shell mode change 100644 => 100755 home/.bin/kube-ssh 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