blob: d43b59d3c4402a9fdd3581b2e27b64cf5a8cd36c (
plain) (
blame)
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
|
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Check if env setup file exists
if [ ! -f /usr/local/etc/zsh_env_setup ]; then
echo "export ZSH=$HOME/.oh-my-zsh" > /usr/local/etc/zsh_env_setup
echo "DEFAULT_USER=$USER" >> /usr/local/etc/zsh_env_setup
fi
# Source env setup file
source /usr/local/etc/zsh_env_setup
# Source powerlevel10k theme
ZSH_THEME="powerlevel10k/powerlevel10k"
COMPLETION_WAITING_DOTS="true"
# Setup plugins
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
# Setup oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Locales
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Path add bin
path+=("$(readlink /Users/$DEFAULT_USER/bin)")
export path
# Add aliases
alias krak='/Applications/GitKraken.app/Contents/MacOS/GitKraken -p "$(PWD)" &>> /dev/null &'
alias lsp="ps -ax | grep"
alias lsa="ls -la"
alias lsg="ls | grep"
alias lsag="ls -la | grep"
alias ls="tput setaf 3 && echo \"'lsa' for 'ls -la', \n'lsg' for 'ls | grep',\n'lsag' for 'ls -la | grep',\n'lsp' for 'ps -ax |grep'\" && tput sgr0 && ls"
# man pages in colors
man() {
LESS_TERMCAP_md=$'\e[01;31m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[01;44;33m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[01;32m' \
command man "$@"
}
# Source powerlevel10k conf
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|