-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
51 lines (36 loc) · 1.04 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
. $HOME/.profile
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd beep extendedglob nomatch PROMPT_SUBST
unsetopt AUTO_CD
bindkey -e
bindkey '\e[A' history-beginning-search-backward
bindkey '\e[B' history-search-forward
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/wharding/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
autoload -U colors && colors
autoload -U promptinit && promptinit
export TERM=xterm-256color
export EDITOR=vim
alias ls='ls -G'
alias ll='ls -l'
alias lh='ls -lh'
alias g=git
alias gd='git diff'
alias gdc='git diff --cached'
today() { date +'%Y%m%d'; }
now() { date +"%Y%m%dT%H%M"; }
nownow() { date +"%Y%m%dT%H%M%S"; }
export DEFAULT_PROMPT="$PROMPT"
PROMPT="%{$fg[green]%}\$(swd)\$(git_prompt)%#%{$reset_color%} "
export PATH=$PATH:$HOME/bin
# Load NVM if it exists
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
export ANSIBLE_NOCOWS=1
echo loaded zshrc...