Skip to content

Commit

Permalink
add update-locale after zsh installation
Browse files Browse the repository at this point in the history
  • Loading branch information
civita committed Dec 1, 2021
1 parent ae2e429 commit ae1933b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ function setup_zsh {
yes_or_no "Install zsh-syntax-highlighting (https://github.com/zsh-users/zsh-syntax-highlighting)?" && /bin/zsh -c 'source ~/.zshrc && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting'
yes_or_no "Install zsh-autosuggestions (https://github.com/zsh-users/zsh-autosuggestions)?" && /bin/zsh -c 'source ~/.zshrc && git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions'
yes_or_no "Replace .zshrc ?" && cp rc/zshrc ~/.zshrc
if [ -n "$(uname -a | grep Ubuntu)" ]; then
if ! command -v sudo &> /dev/null; then
update-locale
else
sudo update-locale
fi
fi
}

function setup_screen {
Expand All @@ -97,6 +104,8 @@ function setup_vim {
yes_or_no "Replace .vimrc ?" && cp rc/vimrc ~/.vimrc
}

troll_face

if [ -n "$(uname -a | grep Ubuntu)" ]; then
# apt
if ! command -v sudo &> /dev/null; then
Expand Down

0 comments on commit ae1933b

Please sign in to comment.