From b31076ceb5b4a2c467b7b84e1c3451a7f993dcf5 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Fri, 3 Jul 2015 00:17:08 +0200 Subject: [PATCH] pick certain stuff from oh-my-zsh --- zshrc | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/zshrc b/zshrc index 7dfec8f..408ddf3 100644 --- a/zshrc +++ b/zshrc @@ -4,6 +4,13 @@ source "${HOME}/.dotfiles/zgen/zgen.zsh" if ! zgen saved; then echo "Creating a zgen save" + zgen oh-my-zsh lib/spectrum.zsh + zgen oh-my-zsh lib/directories.zsh + zgen oh-my-zsh lib/grep.zsh + zgen oh-my-zsh lib/history.zsh + zgen oh-my-zsh plugins/common-aliases + zgen oh-my-zsh plugins/frontend-search + zgen load zsh-users/zsh-completions src zgen load zsh-users/zsh-syntax-highlighting @@ -16,9 +23,6 @@ if ! zgen saved; then zgen save fi -# dircolors -[ -s ~/.dircolors ] && . ~/.dircolors - # extend path export PATH="$HOME/local/bin:$PATH" @@ -45,29 +49,23 @@ esac ######################## # Aliases ######################## +alias _=sudo alias g=git +alias ta='tmux attach -t' +alias ts='tmux new-session -s' +alias tl='tmux list-sessions' rl () { $(npm bin)/$* } +# colors +autoload -U colors && colors +alias ls='ls --color=tty' # keybindings +bindkey -v +bindkey '^P' up-history +bindkey '^N' down-history + bindkey '^r' history-incremental-search-backward bindkey ' ' magic-space -# history settings (from oh-my-zsh) -if [ -z "$HISTFILE" ]; then - HISTFILE=$HOME/.zsh_history -fi - -HISTSIZE=10000 -SAVEHIST=10000 - -setopt append_history -setopt extended_history -setopt hist_expire_dups_first -setopt hist_ignore_dups # ignore duplication command history list -setopt hist_ignore_space -setopt hist_verify -setopt inc_append_history -setopt share_history # share command history data -