-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
executable file
·56 lines (40 loc) · 1.01 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
51
52
53
54
55
56
export ZSH=~/.oh-my-zsh
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$path"
export TERM=xterm-256color
ZSH_THEME="robbyrussell"
plugins=(fast-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
# History
HIST_STAMPS="dd/mm/yyyy"
export HISTSIZE=2000
export HISTFILE="$HOME/.history"
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
# Functions
#
#
function catless() {
if [ $1 ]; then
cat $1 | less
else
echo 'Usage: catless filename'
fi
}
# 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'
fi
# Work aliases, keep private
source ~/.aliases
source ~/.work_config
export PROJECTS_HOME=${HOME}/projects
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"
export PATH=$HOME/bin:$PATH
# Start new tmux session when opening a new console
if [[ -z "$TMUX" ]] ;then
tmux new-session
fi
set -o vi