Commit 6c0223b3 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'delete-obsolete-code' into 'master'

Delete obsolete code

See merge request allworldit/awit-zsh-superawesome!10
parents 0f7c72e9 b6b6a8e1
## Configure the history.
# First up, enable extended history mode
setopt EXTENDED_HISTORY
# Now ignore duplicates in the history
setopt HIST_IGNORE_ALL_DUPS
# Prevent recording a history entry if preceded with at least one space
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
# Add directory colors
if [ -x /usr/bin/dircolors ]; then
eval "$(dircolors -b)"
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias dir='dir --color=auto'
alias ls='ls --color=auto'
alias vdir='vdir --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
fi
alias fgrep='fgrep --color=auto'
# Use modern completion system
autoload -Uz compinit
compinit
# A handy-dandy function for reloading completions we might hack on
function compreload() {
ARG="$1"
......@@ -30,4 +26,7 @@ zstyle ':completion:*' verbose true
#zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
# Add custom completion scripts
fpath=(~/.zsh/completion $fpath)
if [ -d "$HOME/.zsh/completion" ]
then
fpath=($HOME/.zsh/completion $fpath)
fi
# Treat the ‘#’, ‘~’ and ‘^’ characters as part of patterns
# for filename generation, etc. (An initial unquoted ‘~’ always
# produces named directory expansion.)
setopt EXTENDED_GLOB
# Useful variables for our ZSH environment
test "x$HOSTNAME" = "x" && export HOSTNAME=$(hostname)
test "x$HOSTNAME" = "x" && export HOSTNAME="$HOST"
export EDITOR=/usr/bin/vim
export GIT_EDITOR=/usr/bin/vim
export VISUAL=/usr/bin/vim
export SHELL=/bin/zsh
export GIT_EDITOR="$EDITOR"
export VISUAL="$EDITOR"
......@@ -10,4 +10,4 @@ DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
# Pull in the system oh-my-zsh
source /usr/share/oh-my-zsh/oh-my-zsh.sh
source "$ZSH/oh-my-zsh.sh"
# Source bash alias definitions, if they exist
if [ -f ~/.bash_aliases ]
then
source ~/.bash_aliases
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment