Browse Source

Adding a basic zshrc for OhMyZsh

master
Drew Short 9 years ago
parent
commit
66c38ad4f3
  1. 15
      bootstrap.sh
  2. 15
      zshrc

15
bootstrap.sh

@ -11,18 +11,21 @@
# Make a backup of the existing file if it exists # Make a backup of the existing file if it exists
# Then link to our supplied dotfile # Then link to our supplied dotfile
link() { link() {
if [ -f "$HOME/$1" ]; then
cp "$HOME/$1" "$HOME/$1.old"
echo "Backed up original $1 to $HOME/$1.old"
if [ -f "$1/$2" ]; then
cp "$1/$2" "$1/$2.old"
echo "Backed up original $2 to $1/$2.old"
fi fi
ln -sf "$PWD/$2" "$HOME/$1"
ln -sf "$PWD/$3" "$1/$2"
} }
set -x set -x
set -e set -e
# Configure .vimrc # Configure .vimrc
link ".vimrc" "vimrc"
link "$HOME" ".vimrc" "vimrc"
# Configure .gitconfig # Configure .gitconfig
link ".gitconfig" "gitconfig"
link "$HOME" ".gitconfig" "gitconfig"
# Configure .zshrc
link "$HOME" ".zshrc" "zshrc"

15
zshrc

@ -0,0 +1,15 @@
#
# Using Oh My ZSH
# https://github.com/robbyrussell/oh-my-zsh
#
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="ys"
plugins=(git)
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
export EDITOR='vim'
Loading…
Cancel
Save