forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
executable file
·87 lines (66 loc) · 2.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="gentoo"
DISABLE_AUTO_UPDATE="false"
DISABLE_LS_COLORS="false"
. ~/.zsh/config
#. ~/.zsh/aliases
#. ~/.zsh/completion
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
plugins=(alister command-not-found common-aliases docker git git-extras github ssh-agent symfony symfony2 systemadmin tmux wd zsh-syntax-highlighting)
zstyle :omz:plugins:ssh-agent agent-forwarding on
zstyle :omz:plugins:ssh-agent id_rsa.201702
# a10y_rsa id_rsa2 id_github topbit.id_rsa id_rsa
# Customize to your needs...
export PATH="/home/alister/bin:/home/alister/.bin:vendor/bin:/home/alister/.npm-global/bin:$PATH"
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
export EDITOR='joe'
# http://blog.tersmitten.nl/how-to-enable-syntax-highlighting-in-less.html
# -- warning, 'lesspipe' will interfere with source-highlight
# sudo apt-get install source-highlight
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
export LESS=' -R '
source $ZSH/oh-my-zsh.sh
# use .localrc for settings specific to one system
[[ -f ~/.localrc ]] && . ~/.localrc
# not using Ruby much, if any
## for Homebrew installed rbenv
#if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
#@todo add rvm?
#PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
#[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# problematical with .env files that usually read from a file
# echo 'source ~/.autoenv/activate.sh'
# From https://github.com/sharkdp/bat#integration-with-other-tools
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
# It might also be necessary to set MANROFFOPT="-c" if you experience formatting problems.
# From https://github.com/sharkdp/bat#integration-with-other-tools
batdiff() {
git diff --name-only --relative --diff-filter=d | xargs bat --diff
}
# SEE: https://gitlab.com/4U6U57/wsl-open
# Adding wsl-open as a browser for Bash/Zsh?? for Windows
if [[ $(uname -r) =~ (m|M)icrosoft ]]; then
if [[ -z $BROWSER ]]; then
export BROWSER=wsl-open
else
export BROWSER=$BROWSER:wsl-open
fi
fi