1
- #! /usr/bin/env bash
1
+ # shellcheck shell=bash
2
+ # shellcheck disable=SC2034
2
3
3
4
# If not running interactively, don't do anything
4
5
case $- in
@@ -7,27 +8,27 @@ case $- in
7
8
esac
8
9
9
10
# Path to the bash it configuration
10
- export BASH_IT=" {{BASH_IT}}"
11
+ BASH_IT=" {{BASH_IT}}"
11
12
12
13
# Lock and Load a custom theme file.
13
14
# Leave empty to disable theming.
14
- # location /.bash_it/themes/
15
- export BASH_IT_THEME=' bobby'
15
+ # location ~ /.bash_it/themes/
16
+ BASH_IT_THEME=' bobby'
16
17
17
18
# Some themes can show whether `sudo` has a current token or not.
18
19
# Set `$THEME_CHECK_SUDO` to `true` to check every prompt:
19
20
# THEME_CHECK_SUDO='true'
20
21
21
22
# (Advanced): Change this to the name of your remote repo if you
22
23
# cloned bash-it with a remote other than origin such as `bash-it`.
23
- # export BASH_IT_REMOTE='bash-it'
24
+ # BASH_IT_REMOTE='bash-it'
24
25
25
26
# (Advanced): Change this to the name of the main development branch if
26
27
# you renamed it or if it was changed for some reason
27
- # export BASH_IT_DEVELOPMENT_BRANCH='master'
28
+ # BASH_IT_DEVELOPMENT_BRANCH='master'
28
29
29
30
# Your place for hosting Git repos. I use this for private repos.
30
- export GIT_HOSTING=
' [email protected] '
31
+
31
32
32
33
# Don't check mail when opening terminal.
33
34
unset MAILCHECK
@@ -36,49 +37,50 @@ unset MAILCHECK
36
37
export IRC_CLIENT=' irssi'
37
38
38
39
# Set this to the command you use for todo.txt-cli
39
- export TODO=" t"
40
+ TODO=" t"
40
41
41
42
# Set this to the location of your work or project folders
42
43
# BASH_IT_PROJECT_PATHS="${HOME}/Projects:/Volumes/work/src"
43
44
44
45
# Set this to false to turn off version control status checking within the prompt for all themes
45
- export SCM_CHECK=true
46
+ # SCM_CHECK=true
47
+
46
48
# Set to actual location of gitstatus directory if installed
47
- # export SCM_GIT_GITSTATUS_DIR="$HOME/gitstatus"
49
+ # SCM_GIT_GITSTATUS_DIR="$HOME/gitstatus"
48
50
# per default gitstatus uses 2 times as many threads as CPU cores, you can change this here if you must
49
51
# export GITSTATUS_NUM_THREADS=8
50
52
51
53
# Set Xterm/screen/Tmux title with only a short hostname.
52
54
# Uncomment this (or set SHORT_HOSTNAME to something else),
53
55
# Will otherwise fall back on $HOSTNAME.
54
- # export SHORT_HOSTNAME=$(hostname -s)
56
+ # SHORT_HOSTNAME=$(hostname -s)
55
57
56
58
# Set Xterm/screen/Tmux title with only a short username.
57
59
# Uncomment this (or set SHORT_USER to something else),
58
60
# Will otherwise fall back on $USER.
59
- # export SHORT_USER=${USER:0:8}
61
+ # SHORT_USER=${USER:0:8}
60
62
61
63
# If your theme use command duration, uncomment this to
62
64
# enable display of last command duration.
63
- # export BASH_IT_COMMAND_DURATION=true
65
+ # BASH_IT_COMMAND_DURATION=true
64
66
# You can choose the minimum time in seconds before
65
67
# command duration is displayed.
66
- # export COMMAND_DURATION_MIN_SECONDS=1
68
+ # COMMAND_DURATION_MIN_SECONDS=1
67
69
68
70
# Set Xterm/screen/Tmux title with shortened command and directory.
69
71
# Uncomment this to set.
70
- # export SHORT_TERM_LINE=true
72
+ # SHORT_TERM_LINE=true
71
73
72
74
# Set vcprompt executable path for scm advance info in prompt (demula theme)
73
75
# https://github.com/djl/vcprompt
74
- # export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt
76
+ # VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt
75
77
76
78
# (Advanced): Uncomment this to make Bash-it reload itself automatically
77
79
# after enabling or disabling aliases, plugins, and completions.
78
- # export BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=1
80
+ # BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=1
79
81
80
82
# Uncomment this to make Bash-it create alias reload.
81
- # export BASH_IT_RELOAD_LEGACY=1
83
+ # BASH_IT_RELOAD_LEGACY=1
82
84
83
85
# Load Bash It
84
- source " $BASH_IT " /bash_it.sh
86
+ source " ${ BASH_IT?} /bash_it.sh"
0 commit comments