-
Notifications
You must be signed in to change notification settings - Fork 3
/
.zshrc
50 lines (39 loc) · 1.12 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
# Find out distro
local distro="$(. /etc/os-release; echo "$ID;$ID_LIKE")"
if [ "${MY_PROFILE_LOADED}" = "" ]; then
local emulated="$(emulate)"
emulate sh
if [ -f ~/.xprofile ] && [ "$DISPLAY" != "" ]; then
source ~/.xprofile
elif [ -f ~/.profile ]; then
source ~/.profile
fi
emulate "$emulated"
fi
export ADOTDIR="$HOME/.zsh/bundle"
source "$HOME/.zsh/antigen/antigen.zsh"
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
[[ $distro = *arch* ]] && antigen bundle archlinux
[[ $distro = *debian* ]] && antigen bundle debian
[[ $distro = *nixos* ]] || antigen bundle command-not-found
# antigen bundle cabal
# antigen bundle dircycle
# antigen bundle gitfast
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
# Load the theme.
antigen theme robbyrussell
# Tell antigen that you're done
antigen apply
# Aliases
alias vi="vim"
alias v="vim"
alias e="emacs"
alias idle="nice -n 10 ionice -c 3"
alias top="htop"
# Play nicely with Emacs's tramp
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$'
# Disable right prompt
RPROMPT=""