forked from mxaddict/dotfiles_archive_001
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.shrc
55 lines (45 loc) · 1.07 KB
/
.shrc
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
#!/bin/sh
# Set default editor to vim
export EDITOR="nvim"
# Base16 Shell
BASE16_SHELL="$HOME/.config/base16-shell/"
[ -n "$PS1" ] && \
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
eval "$("$BASE16_SHELL/profile_helper.sh")"
# Load our path exports
[ -f ~/.pathrc ] && source ~/.pathrc
# Load our aliases
[ -f ~/.aliasrc ] && source ~/.aliasrc
# load up the custom CLI PROMPT
[ -f ~/.promptline.sh ] && source ~/.promptline.sh
# load z script
if [ -f ~/z.sh ]
then
export _Z_CMD="j"
source ~/z.sh
fi
# load fuzzy z plugin
if [ -f ~/fz.sh ]
then
export FZ_CMD="j"
export FZ_SUBDIR_CMD="jj"
source ~/fz.sh
fi
# load n if installed
if [ -f ~/n/bin/n ]
then
export N_PREFIX="$HOME/n"
[[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin"
fi
if [ -f ~/.local/bin/payrent-dump ]
then
export PD_FOLDER="$HOME/Documents/Payrent/database/backups"
fi
# helper function for reloading go project on file change
# usage:
# watch go run .
watch() {
while inotifywait --exclude .swp -e modify -r .; do $@; done;
}
# load custom config
[ -f ~/.localrc ] && source ~/.localrc