-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsudo.zsh
33 lines (31 loc) · 1.53 KB
/
sudo.zsh
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
# Note that unlike bashrc, zshrc is only sourced in interactive mode. Therefore
# we should ideally set the environment variables in .zprofile, but we hope
# that the OS manufacturer has set those properly in a system wide fashion in
# /etc/zprofile and configure our DEV environment here. Use following for a
# plain old bash with defaultish environment: `env -i HOME="$HOME" bash -l`
# See: https://superuser.com/a/1333539
typeset -U path fpath
# Respect .zshenv defaults unless we specifically want to alter them
export BROWSER="${BROWSER:=open}"
export EDITOR="${EDITOR:=vim}"
export VISUAL="${EDITOR:=vim}"
export PAGER="${PAGER:=less}"
export HISTFILE="~/.scratch/zhistory"
export HOMEBREW_NO_AUTO_UPDATE=1
export DEFAULT_USER="$(whoami)"
#[[ -f ~/git/pseudo/powerlevel9krc.zsh ]] && source ~/git/pseudo/powerlevel9krc.zsh
[[ -f ~/git/pseudo/zpreztorc.zsh ]] && source ~/git/pseudo/zpreztorc.zsh
[[ -f ~/git/pseudo/zgenrc.zsh ]] && source ~/git/pseudo/zgenrc.zsh
#[[ -f ~/git/pseudo/zplugrc.zsh ]] && source ~/git/pseudo/zplugrc.zsh
# Override plugin defaults or settings
setopt histignorespace
#unsetopt share_history
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=26'
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
# Pseudo aliases
[[ -f "${HOME}/.aliases.zsh" ]] && source "${HOME}/.aliases.zsh"
[[ -f ~/.fzf.zsh ]] && source ~/.fzf.zsh
[[ -d ~/bin ]] && export PATH="${HOME}/bin:$PATH"
alias mkalias='${EDITOR:=vi} ${HOME}/.aliases.zsh && source ${HOME}/.aliases.zsh'
export HOMEBREW_NO_AUTO_UPDATE=true