-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
70 lines (55 loc) · 1.6 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
### SOURCE GUARD ###
[[ $- != *i* ]] && return
export ZSH=$HOME/.config/zsh
export CONFIG=$HOME/.config
export DOTFILES=$HOME/dotfiles
export LC_CTYPE="sv_SE.UTF-8"
export LC_MESSAGES="en_GB.UTF-8"
### TYPESET ###
typeset -aU path
typeset -A plugins
### END TYPESET ###
### PATH ###
if [ -d "$HOME/.bin" ] ;
then PATH="$HOME/.bin:$PATH"
fi
if [ -d "$HOME/go/bin" ] ;
then PATH="$HOME/go/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ;
then PATH="$HOME/.local/bin:$PATH"
fi
# This is for M1-macs, who install homebrew in /opt/homebrew
if [ -d "/opt/homebrew" ] ;
then PATH="/opt/homebrew/bin:$PATH"
fi
### END PATH ###
### EXPORTS ###
export TERM="xterm-256color" # getting proper colors
export HISTORY_IGNORE="(ls|cd|pwd|exit|doas reboot|history|cd -|cd ..)"
### END EXPORTS ###
### VI MODE ###
bindkey -v
### END VI MODE ###
### INCLUDE FILES ###
for zsh in $(/bin/ls -a ${HOME}/.config/zsh/**/*.zsh | grep -v "/plugins/"); do
. "${zsh}"
done
### END INCLUDE FILES ###
### SET MANPAGER ###
# "vim" as manpager
#export MANPAGER='/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa<CR>\"</dev/tty <(col -b)"'
# "nvim" as manpager
export MANPAGER="nvim -c 'set ft=man' -"
### END SET MANPAGER ###
# Initialize autocomplete
autoload -U compinit add-zsh-hook
compinit
### SET THEME ###
# Add path do custom theme directory
fpath=("$CONFIG/zsh/prompts" "$CONFIG/zsh/functions" "$fpath[@]")
autoload -Uz promptinit
promptinit
prompt mytheme01
#source $ZSH/prompts/prompt_test1_setup
### END SET THEME ###