Skip to content

Instantly share code, notes, and snippets.

@leemour
Last active April 12, 2023 08:53
Show Gist options
  • Star 78 You must be signed in to star a gist
  • Fork 19 You must be signed in to fork a gist
  • Save leemour/5749839 to your computer and use it in GitHub Desktop.
Save leemour/5749839 to your computer and use it in GitHub Desktop.
Zsh installation and Agnoster theme settings
# Railscast
http://railscasts.com/episodes/308-oh-my-zsh
# Install Zsh
sudo apt-get update && sudo apt-get install zsh
# Install Oh-my-zsh
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh
# Make ZSH default shell
chsh -s /bin/zsh
# Install Agnoster Theme
https://gist.github.com/agnoster/3712874
# ~/.zshrc
ZSH_THEME="leemour"
# in .zshrc add user to hide user from command prompt
DEFAULT_USER=leemour
# Copy patched Menlo font to /usr/share/fonts/truetype from this link:
https://gist.github.com/qrush/1595572
# Install font for missing chars
# Some fonts here, but don't work - https://github.com/Lokaltog/powerline-fonts
# Ubuntu took missing chars from patched menlo. I also did this:
https://powerline.readthedocs.org/en/latest/installation/linux.html#font-installation
# Refresh font cache:
fc-cache -f -v
# then restart if haven't yet
# Add aliases from .bashrc
# Change colors to solarized https://github.com/sigurdga/gnome-terminal-colors-solarized
git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized
./solarize
# Change Dircolors https://github.com/seebi/dircolors-solarized
Copy dircolors.ansi-dark to ~/.solarized
# Add to ~/.zshrc
eval `dircolors ~/.solarized/dircolors.ansi-dark`
# Change Agnoster theme to Leemour and add right prompt to show Time and Ruby version
RPROMPT="\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg[yellow]%}[%*]"
# Add plugins
plugins=(git rails rails3 ruby capistrano bundler heroku rake rvm autojump command-not-found python pip github gnu-utils history-substring-search zsh-syntax-highlighting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment