-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshrc
55 lines (44 loc) · 1.56 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
# Path to your oh-my-zsh installation.
if [ -d $HOME/.oh-my-zsh ]; then
export ZSH=$HOME/.oh-my-zsh
fi
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
if [ -f $ZSH/oh-my-zsh.sh ]; then
source $ZSH/oh-my-zsh.sh
fi
if [ -d $HOME/.zplug ] && [ -f $HOME/.zplug/init.zsh ]; then
source $HOME/.zplug/init.zsh
# NOTE: ZShell Plugins
zplug "b4b4r07/enhancd", use:init.sh
zplug "k4rthik/git-cal", as:command
zplug "plugins/git", from:oh-my-zsh
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug 'geometry-zsh/geometry', as:theme
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
echo; zplug install
fi
# Then, source plugins and add commands to $PATH
zplug load
fi
plugins=(git)
# [[ $- != *i* ]] && return
# if [[ -z "$TMUX" ]] ;then
# ID="`tmux ls | grep -vm1 attached | cut -d: -f1`" # get the id of a deattached session
# if [[ -z "$ID" ]] ;then # if not available create a new one
# tmux new-session
# else
# tmux attach-session -t "$ID" # if available attach to it
# fi
# fi
source "$HOME/.alias"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=248'
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh