Skip to content

Instantly share code, notes, and snippets.

View gedzeppelin's full-sized avatar
👽

Gedy Palomino gedzeppelin

👽
View GitHub Profile
@gedzeppelin
gedzeppelin / gdzsh-cloud-installer-debian.sh
Last active April 14, 2022 00:41
gdzsh theme installer
#!/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
@gedzeppelin
gedzeppelin / gdzsh-cloud.zsh-theme
Last active June 1, 2021 07:04
Simple zsh theme with cloud anotation.
# 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;
}
@gedzeppelin
gedzeppelin / gdzsh.zsh-theme
Last active August 10, 2021 19:02
Simple zsh theme.
# 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;
}