Skip to content

Instantly share code, notes, and snippets.

@leemour
Last active April 12, 2023 08:53
Show Gist options
  • 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