-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
71 lines (56 loc) · 1.88 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
export DOTPATH=$HOME/dotfiles
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="$HOME/.rbenv/bin:$PATH"
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"
# export PATH="/usr/local/opt/awscli@1/bin:$PATH"
export PATH="/usr/local/opt/awscli/bin:$PATH"
export PATH="/usr/local/opt/python@3.7/bin:$PATH"
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"
export ANDROID_SDK=/Users/MMurphy/Library/Android/sdk
export PATH=/Users/MMurphy/Library/Android/sdk/platform-tools:$PATH
# USE `whoami` in terminal to get username
DEFAULT_USER=MMurphy
autoload -Uz add-zsh-hook
eval "$(rbenv init -)"
# Display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Too many plugins slow down shell startup.
plugins=(
git
ruby
rails
gem
brew
docker
mvn
zsh-autosuggestions
colored-man-pages
)
# ZSH Autosuggestions
# https://github.com/zsh-users/zsh-autosuggestions
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=3'
# Instructions found here for iterm tabs displaying working directory
# https://gist.github.com/phette23/5270658
DISABLE_AUTO_TITLE="true"
tab_title() {
# sets the tab title to current dir
echo -ne "\e]1;${PWD##*/}\a"
}
add-zsh-hook precmd tab_title
eval "$(hub alias -s)"
# Spaceship-Prompt (zsh theme)
source "$DOTPATH/zsh/theme_settings/.zsh_spaceship_prompt_settings"
# POWERLEVEL_9K (zsh theme)
# source "$DOTPATH/zsh/theme_settings/.zsh_powerlevel_9k_settings"
# Custom Aliases
source $DOTPATH/aliases/.aliases
# This video has good tips when it comes to hiding sensitive information
# https://www.youtube.com/watch?v=dQw4w9WgXcQ
source "$DOTPATH/zsh/.local"
source "$DOTPATH/zsh/.work"
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
source $ZSH/oh-my-zsh.sh
source /usr/local/opt/git-extras/share/git-extras/git-extras-completion.zsh
# to have zsh syntax highlighting run:
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh