Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • rspencer/awit-zsh-superawesome
1 result
Show changes
HIST_STAMPS="yyyy/mm/dd"
## Configure the history.
# First up, enable extended history mode
setopt EXTENDED_HISTORY
# Now ignore duplicates in the history
setopt HIST_IGNORE_ALL_DUPS
# Ignore gaps too
setopt HIST_IGNORE_SPACE
# Don't store invocations of 'history' in the history
setopt HIST_NO_STORE
# Enable incremental append
setopt INC_APPEND_HISTORY
# Enable zsh history sharing. Scary but fun
setopt SHARE_HISTORY
## Now the history file configuration itself
# The file to store history in
HISTFILE=~/.zsh_history
# Store 2000 commands in memory
HISTSIZE=2000
# Save 1000 commands
SAVEHIST=1000
# Remove / from the default WORDCHARS
WORDCHARS=$(echo $WORDCHARS | tr -d '/')
# If a command takes a combined time of > 10 seconds, zsh will report it...
REPORTTIME=10
# Use a bunch of colors
if [ "$TERM" = "screen" ]
then
export TERM="screen-256color-s"
else
export TERM="xterm-256color"
fi
# Add directory colors
if [ -x /usr/bin/dircolors ]; then
eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# Use modern completion system
autoload -Uz compinit
compinit
# A handy-dandy function for reloading completions we might hack on
compreload ()
{
ARG="$1"
unfunction _$ARG
autoload _$ARG
}
# Bash-style null glob result -> no error
setopt null_glob
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
#zstyle ':completion:*' group-name ''
#zstyle ':completion:*' menu select=2
#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'
# Oh My ZSH plugins to load
plugins=(git)
ZSH_THEME="powerline"
# Display date or exit-status
POWERLINE_RIGHT_A="exit-status"
POWERLINE_NO_BLANK_LINE="true"
setopt EXTENDED_GLOB
# Useful variables for our ZSH environment
test "x$HOSTNAME" = "x" && HOSTNAME=$(hostname)
export HOSTNAME
test "x$VISUAL" = "x" && VISUAL=vim
export VISUAL
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.zsh/oh-my-zsh
# User configuration
source $ZSH/oh-my-zsh.sh
# Useful functions
mcd () { mkdir -p "$1"; cd "$1"; }
odx () { od -t x4 -A x "$@" ; }
odx1 () { od -t x1 -A x "$@" ; }
# Git related handy-handy stuff
make-project () { mcd "$1"; git init; cp /usr/share/common-licenses/$2 COPYING; git add COPYING; git commit -m "This project is under the $2 licence at this time"; }
# Alias definitions.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi