Skip to content

Instantly share code, notes, and snippets.

@MattiJarvinen-BA
Last active August 29, 2016 03:57
Show Gist options
  • Save MattiJarvinen-BA/3e3a40deda5223eb31ae3049e39ca94d to your computer and use it in GitHub Desktop.
Save MattiJarvinen-BA/3e3a40deda5223eb31ae3049e39ca94d to your computer and use it in GitHub Desktop.
ZSH with Bash on Ubuntu on Windows

#ZSH with Bash on Ubuntu on Windows

ZSH as default shell ( if you have installed zsh!! )

Append to the bottom of the .bashrc

# Launch Zsh
if [ -t 1 ]; then
  exec zsh
fi

Tune ls colors

Make dircolors file # dircolors -p .dircolors

Alter some colors with nano etc. I found OTHER_WRITABLE (/mnt/ unbearable)

OTHER_WRITABLE 30;42;07 # dir that is other-writable (o+w) and not sticky

Make ZSH pretty

Install oh-my-zsh

# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

After installing oh-my-zsh prepend into .zshrc

# Remove username if default user
export DEFAULT_USER=`id -un`

# Load dircolors mentioned before if file exists
dircolorfile="$HOME/.dircolors"
test -r $dircolorfile && eval "$(dircolors -b $dircolorfile)"

Uncomment language somewhere in the bottom of the file... for some odd reason it tries to be in Finnish

export LANG=en_US.UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment