-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
52 lines (39 loc) · 1.07 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
# Anwarias custom config feel free to customize/copy/redistribute
# Configure SSH-Agent
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > ~/.ssh-agent-thing
fi
if [[ "$SSH_AGENT_PID" == "" ]]; then
eval "$(<~/.ssh-agent-thing)"
fi
# Add ~/bin to path
export PATH="$HOME/bin:$PATH"
# Comand autocompletion
autoload -Uz compinit promptinit
compinit
# This will set the default prompt to the walters theme
promptinit
prompt anwarias
# Autocompletion arrow key support
zstyle ':completion:*' menu select
# History settings
#setopt autocd extendedglob
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt SHARE_HISTORY
SAVEHIST=1000000
HISTFILE=~/.zsh_history
#Fix Delete Key
bindkey "^[[3~" delete-char
bindkey "^[3;5~" delete-char
# Shell Setup
export EDITOR=vim
# Aliases
source ~/.my-aliases
# Functions
source ~/.my-functions
# Gurobi
source ~/.gurobi-env
# Zsh Syntax Highlighting
# source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh