-
Notifications
You must be signed in to change notification settings - Fork 1
/
zim.sh
28 lines (22 loc) · 1 KB
/
zim.sh
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
# https://github.com/Eriner/zim
#fonts needed for zsh
# https://github.com/powerline/fonts
#Install zim
brew install zsh
sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh
##RESTART TERMINAL
exec zsh
git clone --recursive https://github.com/Eriner/zim.git ${ZDOTDIR:-${HOME}}/.zim
echo 'eval "$(hub alias -s)"' >> ~/.zshrc
echo 'alias dc="docker-compose"' >> ~/.zshrc
echo 'eval "$(thefuck --alias)"' >> ~/.zshrc
#Needed for zsh completions
echo 'fpath=(~/.zsh/completion $fpath)' >> ~/.zshrc
echo 'autoload -Uz compinit && compinit -i' >> ~/.zshrc
mkdir -p ~/.zsh/completion
#Zsh completion for docker
curl -fLo ~/.zsh/completion/_docker https://raw.githubusercontent.com/docker/docker/master/contrib/completion/zsh/_docker
#Zsh completion for docker-compose
curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/zsh/_docker-compose > ~/.zsh/completion/_docker-compose
#Hides username/machine when you are logged as yourself
export DEFAULT_USER=`whoami`