Compare commits
No commits in common. "21dc2e7a00c14795fa6fbf5e96da74d4cf04f6f7" and "57ee2084079b56033e9c3f353e52e70ce5fc49d3" have entirely different histories.
21dc2e7a00
...
57ee208407
3
.gitignore
vendored
3
.gitignore
vendored
@ -25,6 +25,3 @@
|
||||
|
||||
/os-specific/darwin/home/.gnupg/*
|
||||
!/os-specific/darwin/home/.gnupg/gpg-agent.conf
|
||||
/home/.kube/*
|
||||
!/home/.kube/clusters
|
||||
!/home/.kube/switch-config.yaml
|
||||
|
0
home/.bin/gs-create-cluster
Executable file → Normal file
0
home/.bin/gs-create-cluster
Executable file → Normal file
0
home/.bin/gs-get-cluster
Executable file → Normal file
0
home/.bin/gs-get-cluster
Executable file → Normal file
0
home/.bin/gs-login
Executable file → Normal file
0
home/.bin/gs-login
Executable file → Normal file
0
home/.bin/gs-release
Executable file → Normal file
0
home/.bin/gs-release
Executable file → Normal file
0
home/.bin/kube-all
Executable file → Normal file
0
home/.bin/kube-all
Executable file → Normal file
0
home/.bin/kube-clean-replicasets
Executable file → Normal file
0
home/.bin/kube-clean-replicasets
Executable file → Normal file
0
home/.bin/kube-exec
Executable file → Normal file
0
home/.bin/kube-exec
Executable file → Normal file
0
home/.bin/kube-forward-all
Executable file → Normal file
0
home/.bin/kube-forward-all
Executable file → Normal file
0
home/.bin/kube-logs
Executable file → Normal file
0
home/.bin/kube-logs
Executable file → Normal file
0
home/.bin/kube-shell
Executable file → Normal file
0
home/.bin/kube-shell
Executable file → Normal file
0
home/.bin/kube-ssh
Executable file → Normal file
0
home/.bin/kube-ssh
Executable file → Normal file
@ -45,19 +45,8 @@ lt() {
|
||||
|
||||
git() {
|
||||
if [ "$1" = "take" ]; then # Git clone then cd into new directory
|
||||
if [ $# -gt 2 ]; then
|
||||
_git clone ${@:2}
|
||||
cd $3
|
||||
else
|
||||
ORG=$(echo $2 | sed -e 's|https://||' -e 's|/| |g' -e 's|:| |g' | cut -f 2 -d ' ')
|
||||
REPO=$(echo $2 | sed -e 's|https://||' -e 's|/| |g' -e 's|:| |g' | cut -f 3 -d ' ' | xargs basename -s .git)
|
||||
|
||||
DST="${HOME}/Code/${ORG}/${REPO}"
|
||||
mkdir -p ${DST}
|
||||
|
||||
_git clone $2 ${DST}
|
||||
cd ${DST}
|
||||
fi
|
||||
_git clone $2
|
||||
cd $(basename $2 | sed 's/\.git$//')
|
||||
elif [ "$1" = "commit" ]; then # Sign all commits
|
||||
shift
|
||||
_git commit -s $@
|
||||
|
@ -5,7 +5,6 @@ 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)"
|
||||
@ -66,7 +65,7 @@ fulllink() {
|
||||
if [ ! -z `which greadlink` ]
|
||||
then
|
||||
greadlink -f $1
|
||||
else
|
||||
else
|
||||
readlink -f $1
|
||||
fi
|
||||
}
|
||||
@ -80,14 +79,14 @@ case "${OSTYPE}" in
|
||||
;;
|
||||
*darwin*)
|
||||
# Mac specific setup
|
||||
MAC_BREW_TOOLS=( pinentry-mac gpg gawk coreutils wget )
|
||||
MAC_BREW_TOOLS=( pinentry-mac gpg gawk coreutils )
|
||||
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
|
||||
@ -119,4 +118,4 @@ do
|
||||
printf "Linking ${f}=>${dst}"
|
||||
ln -sfn ${f} ${dst}
|
||||
printf " ✅\n"
|
||||
done
|
||||
done
|
Loading…
Reference in New Issue
Block a user