summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2015-06-09 21:24:53 -0400
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2015-06-09 21:24:53 -0400
commit4aebf9589bbf664d80201956c96ce0b6d1f289dc (patch)
tree5f1ccc7878d7efadc387d296e86226870545c817
parent03bce4f6a44a958cc803197206a34c8e41d77e0e (diff)
Add zsh configuration.
-rw-r--r--.gitmodules3
-rwxr-xr-xbin/setup.sh1
m---------zgen0
-rwxr-xr-xzshrc48
4 files changed, 52 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..696b396
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "zgen"]
+ path = zgen
+ url = https://github.com/tarjoilija/zgen.git
diff --git a/bin/setup.sh b/bin/setup.sh
index 6d1620d..16ced8c 100755
--- a/bin/setup.sh
+++ b/bin/setup.sh
@@ -26,3 +26,4 @@ create_symlink() {
}
create_symlink dotfiles/gitconfig .gitconfig
+create_symlink dotfiles/zshrc .zshrc
diff --git a/zgen b/zgen
new file mode 160000
+Subproject 4acba623a0906e2d4723e176ce137dfb2021ea3
diff --git a/zshrc b/zshrc
new file mode 100755
index 0000000..9d1d52e
--- /dev/null
+++ b/zshrc
@@ -0,0 +1,48 @@
+# :)
+# ulimit -v 4194304 # 4G
+# ulimit -u 1024
+
+source $HOME/dotfiles/zgen/zgen.zsh
+# check if there's no init script
+if ! zgen saved; then
+ echo "Creating a zgen save"
+ zgen oh-my-zsh
+ # plugins
+ zgen oh-my-zsh plugins/git
+ zgen oh-my-zsh plugins/sudo
+ zgen oh-my-zsh plugins/history
+ zgen oh-my-zsh plugins/autojump
+ zgen oh-my-zsh plugins/command-not-found
+ zgen load zsh-users/zsh-syntax-highlighting
+ # completions
+ zgen load zsh-users/zsh-completions src
+ # theme
+ zgen oh-my-zsh themes/frisk
+ # save all to init script
+ zgen save
+fi
+
+# Emacs-like editor
+bindkey -e
+export WORDCHARS=''
+
+# Dvorak
+setopt DVORAK
+
+alias ls="ls --color"
+alias vi="gvim --remote"
+alias ff="fileutil --gfs_user=gfp-reporting"
+alias diff=colordiff
+
+if [[ -f ~/.zshrc.local ]]; then
+ source ~/.zshrc.local
+fi
+
+export EDITOR=vim
+export PAGER=less
+export TZ='America/New_York'
+
+# allow editing of command line
+autoload -U edit-command-line
+zle -N edit-command-line
+bindkey "^V" edit-command-line