This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Functions | |
git_prompt_info() { | |
inside_git_repo="$(git rev-parse --is-inside-work-tree 2>/dev/null)" | |
if [ "$inside_git_repo" ]; then | |
branch=$(git branch | awk '/^\*/ { print $2 }') | |
echo "%{$RESET%}, in %{$GREEN%}$branch%{$RESET%} branch" | |
else | |
echo "" | |
fi; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Functions | |
git_prompt_info() { | |
inside_git_repo="$(git rev-parse --is-inside-work-tree 2>/dev/null)" | |
if [ "$inside_git_repo" ]; then | |
branch=$(git branch | awk '/^\*/ { print $2 }') | |
echo "%{$RESET%}, in %{$GREEN%}$branch%{$RESET%} branch" | |
else | |
echo "" | |
fi; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
sudo apt -y update | |
sudo apt -y install wget git zsh | |
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" "" --unattended | |
sudo chsh -s /usr/bin/zsh $USER | |
wget --backups=1 https://gist.githubusercontent.com/gedzeppelin/959a3f48a486e79e6170cd593386e164/raw/gdzsh-cloud.zsh-theme -P $HOME/.oh-my-zsh/custom/themes/ | |
sed -i 's/ZSH_THEME=".*"/ZSH_THEME="gdzsh-cloud"/' $HOME/.zshrc | |
#exec zsh |