Last active
August 8, 2021 12:57
-
-
Save soifou/c99be4373f6ffe3b4ff7 to your computer and use it in GitHub Desktop.
Revisions
-
soifou revised this gist
May 10, 2019 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ # Quickly setup Zsh powered by antigen on fresh Debian servers # Usage: bash -c "$(curl -fsSL https://gist.github.com/soifou/c99be4373f6ffe3b4ff7/raw/COMMIT_ID/zsh-antigen-debian.sh)" if [[ $(which zsh | wc -m) == 0 ]]; then echo "Zsh is not installed... installing" @@ -16,7 +16,7 @@ fi if [[ ! -d $HOME/.antigen ]]; then echo "Clone antigen repository..." mkdir $HOME/.antigen curl -L git.io/antigen > $HOME/.antigen/antigen.zsh fi if [[ -f $HOME/.zshrc ]]; then @@ -35,7 +35,7 @@ antigen bundle git antigen bundle command-not-found antigen bundle zsh-users/zsh-syntax-highlighting antigen bundle zsh-users/zsh-history-substring-search antigen theme bureau antigen apply bindkey '^[[A' history-substring-search-up bindkey '^[[B' history-substring-search-down -
soifou revised this gist
Nov 24, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -34,8 +34,11 @@ antigen bundle debian antigen bundle git antigen bundle command-not-found antigen bundle zsh-users/zsh-syntax-highlighting antigen bundle zsh-users/zsh-history-substring-search antigen theme pure antigen apply bindkey '^[[A' history-substring-search-up bindkey '^[[B' history-substring-search-down EOF CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)') -
soifou revised this gist
Oct 12, 2016 . 1 changed file with 13 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,19 +2,21 @@ # Quickly setup Zsh powered by antigen on fresh Debian servers # Usage: bash -c "$(curl -fsSL https://gist.github.com/soifou/c99be4373f6ffe3b4ff7/raw/COMMIT_ID/zsh-antigen-debian.sh)" ANTIGEN_VERSION=1.2.0 if [[ $(which zsh | wc -m) == 0 ]]; then echo "Zsh is not installed... installing" sudo apt-get install -y zsh fi if [[ $(which curl | wc -m) == 0 ]]; then echo "Curl is not installed... installing" sudo apt-get install -y curl fi if [[ ! -d $HOME/.antigen ]]; then echo "Clone antigen repository..." mkdir $HOME/.antigen curl https://cdn.rawgit.com/zsh-users/antigen/v$ANTIGEN_VERSION/bin/antigen.zsh > $HOME/.antigen/antigen.zsh fi if [[ -f $HOME/.zshrc ]]; then @@ -32,16 +34,16 @@ antigen bundle debian antigen bundle git antigen bundle command-not-found antigen bundle zsh-users/zsh-syntax-highlighting antigen theme pure antigen apply EOF CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)') if [ "$CURRENT_SHELL" != "zsh" ]; then echo "\033[0;34mTime to change your default shell to zsh!\033[0m" sudo chsh --shell=$(grep /zsh$ /etc/shells | tail -1) $USER fi unset CURRENT_SHELL echo "Reload shell..." env zsh -
soifou revised this gist
May 1, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,11 +5,11 @@ if [[ $(which zsh | wc -m) == 0 ]]; then echo "Zsh is not installed... installing" apt-get install -y zsh fi if [[ $(which git | wc -m) == 0 ]]; then echo "Git is not installed... installing" apt-get install -y git fi if [[ ! -d $HOME/antigen ]]; then -
soifou revised this gist
May 1, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,11 +5,11 @@ if [[ $(which zsh | wc -m) == 0 ]]; then echo "Zsh is not installed... installing" apt-get install zsh fi if [[ $(which git | wc -m) == 0 ]]; then echo "Git is not installed... installing" apt-get install git fi if [[ ! -d $HOME/antigen ]]; then -
soifou revised this gist
Feb 17, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/bin/bash # Quickly setup Zsh powered by antigen on fresh Debian servers # Usage: bash -c "$(curl -fsSL https://gist.github.com/soifou/c99be4373f6ffe3b4ff7/raw/COMMIT_ID/zsh-antigen-debian.sh)" if [[ $(which zsh | wc -m) == 0 ]]; then echo "Zsh is not installed... installing" -
soifou revised this gist
Feb 14, 2016 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -24,9 +24,8 @@ fi echo "Configuring zshrc..." cat > "$HOME/.zshrc" <<EOF LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 source $HOME/.antigen/antigen.zsh antigen use oh-my-zsh antigen bundle debian -
soifou revised this gist
Feb 14, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ fi if [[ ! -d $HOME/antigen ]]; then echo "Clone antigen repository..." git clone https://github.com/zsh-users/antigen.git $HOME/.antigen fi if [[ -f $HOME/.zshrc ]]; then @@ -27,7 +27,7 @@ cat > "$HOME/.zshrc" <<EOF export LANGUAGE="UTF-8" export LC_ALL="UTF-8" export LANG="UTF-8" source $HOME/.antigen/antigen.zsh antigen use oh-my-zsh antigen bundle debian antigen bundle git -
soifou revised this gist
Feb 12, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/bin/bash # Quickly setup Zsh powered by antigen on fresh Debian servers # Usage: bash -c "$(curl -fsSL https://gist.githubusercontent.com/soifou/c99be4373f6ffe3b4ff7/raw/cac9c2c0b5273d75c5bf5b5b5921c6579c0849a1/zsh-antigen-debian.sh)" if [[ $(which zsh | wc -m) == 0 ]]; then echo "Zsh is not installed... installing" -
soifou created this gist
Feb 12, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,49 @@ #!/bin/bash # Quickly setup Zsh powered by antigen on fresh Debian servers # Usage: bash -c "$(curl -fsSL https://raw.github.com/gist/id)" if [[ $(which zsh | wc -m) == 0 ]]; then echo "Zsh is not installed... installing" sudo apt-get install zsh fi if [[ $(which git | wc -m) == 0 ]]; then echo "Git is not installed... installing" sudo apt-get install git fi if [[ ! -d $HOME/antigen ]]; then echo "Clone antigen repository..." git clone https://github.com/zsh-users/antigen.git $HOME/antigen fi if [[ -f $HOME/.zshrc ]]; then echo "Found existing zshrc... backup" mv $HOME/.zshrc $HOME/.zshrc.dotbackup fi echo "Configuring zshrc..." cat > "$HOME/.zshrc" <<EOF export LANGUAGE="UTF-8" export LC_ALL="UTF-8" export LANG="UTF-8" source $HOME/antigen/antigen.zsh antigen use oh-my-zsh antigen bundle debian antigen bundle git antigen bundle command-not-found antigen bundle zsh-users/zsh-syntax-highlighting antigen theme bureau antigen apply EOF TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)') if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then echo "\033[0;34mTime to change your default shell to zsh!\033[0m" chsh -s $(grep /zsh$ /etc/shells | tail -1) fi unset TEST_CURRENT_SHELL echo "Reload shell..." env zsh source $HOME/.zshrc