switching to oh-my-zsh

This commit is contained in:
Johannes Findeisen 2015-06-24 22:17:56 +02:00
commit fb974e1163
4 changed files with 90 additions and 87 deletions

2
.gitignore vendored
View file

@ -4,7 +4,9 @@
!.gnupg !.gnupg
.gnupg/* .gnupg/*
!.gnupg/hanez.asc !.gnupg/hanez.asc
!.oh-my-zsh
!.signature !.signature
!.vimrc !.vimrc
!.zshrc !.zshrc
!README.md !README.md

3
.gitmodules vendored
View file

@ -0,0 +1,3 @@
[submodule "oh-my-zsh"]
path = .oh-my-zsh
url = git://github.com/robbyrussell/oh-my-zsh.git

1
.oh-my-zsh Submodule

@ -0,0 +1 @@
Subproject commit 599831b85a5fd4564ab820530e2bb45f37ca3f99

149
.zshrc
View file

@ -1,87 +1,84 @@
# Extend my $PATH to $PATH/bin # Path to your oh-my-zsh installation.
export PATH=$PATH:$HOME/bin export ZSH=/home/hanez/.oh-my-zsh
# Now source some stuff that should not be public # Set name of the theme to load.
if [ -e ~/.zshprivate ] # Look in ~/.oh-my-zsh/themes/
then # Optionally, if you set this to "random", it'll load a random theme each
source ~/.zshprivate # time that oh-my-zsh is loaded.
fi ZSH_THEME="jnrowe"
# History settings # Uncomment the following line to use case-sensitive completion.
HISTSIZE=100000 # CASE_SENSITIVE="true"
SAVEHIST=100000
HISTFILE=~/.zsh_history
export EDITOR=vim # Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Some aliases # Uncomment the following line to disable bi-weekly auto-update checks.
alias ..='cd ..' # DISABLE_AUTO_UPDATE="true"
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias l='ls --color'
alias ls='ls --color'
alias lsa='ls -a --color'
alias ll='ls --color -l'
alias lla='ls -la --color'
alias lsd='ls -ld --color'
alias xterm='uxterm -bg black -fg grey -sb -leftbar -si -bc -cr orange'
# Set up the Zsh # Uncomment the following line to change how often to auto-update (in days).
setopt extendedhistory # export UPDATE_ZSH_DAYS=13
setopt histignoredups
setopt histreduceblanks
setopt incappendhistory
setopt sharehistory
# Set up the prompt # Uncomment the following line to disable colors in ls.
autoload -Uz promptinit # DISABLE_LS_COLORS="true"
promptinit
prompt_gentoo_setup () { # Uncomment the following line to disable auto-setting terminal title.
prompt_gentoo_prompt=${1:-'blue'} # DISABLE_AUTO_TITLE="true"
prompt_gentoo_user=${2:-'green'}
prompt_gentoo_root=${3:-'red'}
if [ "$USER" = 'root' ] # Uncomment the following line to enable command auto-correction.
then # ENABLE_CORRECTION="true"
base_prompt="%B%F{$prompt_gentoo_root}%m%k "
else
base_prompt="%B%F{$prompt_gentoo_user}%n@%m%k "
fi
post_prompt="%b%f%k"
#setopt noxtrace localoptions
path_prompt="%B%F{$prompt_gentoo_prompt}%1~"
PS1="$base_prompt$path_prompt %# $post_prompt"
PS2="$base_prompt$path_prompt %_> $post_prompt"
PS3="$base_prompt$path_prompt ?# $post_prompt"
}
prompt_gentoo_setup "$@"
# Completion stuff # Uncomment the following line to display red dots whilst waiting for completion.
autoload -Uz compinit COMPLETION_WAITING_DOTS="true"
compinit
zstyle ':completion:*' auto-description 'specify: %d' # Uncomment the following line if you want to disable marking untracked files
zstyle ':completion:*' completer _expand _complete _correct _approximate # under VCS as dirty. This makes repository status check for large repositories
zstyle ':completion:*' format 'Completing %d' # much, much faster.
zstyle ':completion:*' group-name '' # DISABLE_UNTRACKED_FILES_DIRTY="true"
zstyle ':completion:*' menu select=2
eval "$(dircolors -b)"
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
# I use xterm and this sets a nice title with hostname and cwd in it. # Uncomment the following line if you want to change the command execution time
case $TERM in # stamp shown in the history command output.
xterm*) # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
precmd () {print -Pn "\e]0;%n@%m: %~\a"} # HIST_STAMPS="mm/dd/yyyy"
;;
esac # Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(gitfast)
# User configuration
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-ndk:/opt/android-sdk/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/hanez/bin:/opt/android-ndk/:/opt/android-sdk//platform-tools:/opt/android-sdk//tools:/home/hanez/.gem/ruby/2.2.0/bin"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.sh
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"