File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Defines default options for bash-toys commands.
4
+ #
3
5
# ```shell-session
4
6
# $ source path/to/bash-toys/define-options.sh
5
7
# ```
6
8
7
- [[ -n $BASH_TOYS_LOADED_DEFAULT_OPTIONS ]] && return
8
-
9
9
dir=" $( cd -- " $( dirname -- " ${BASH_SOURCE:- $0 } " ) " && pwd || exit 1) "
10
10
11
11
# Set default values only if variables are not already set
@@ -15,5 +15,3 @@ dir="$(cd -- "$(dirname -- "${BASH_SOURCE:-$0}")" && pwd || exit 1)"
15
15
[[ -z $BASH_TOYS_POMODORO_NOTIFICATION_MUSIC ]] && export BASH_TOYS_POMODORO_NOTIFICATION_MUSIC=" $dir /assets/notify.mp3"
16
16
[[ -z $BASH_TOYS_POMODORO_NOTIFICATION_DURATION ]] && export BASH_TOYS_POMODORO_NOTIFICATION_DURATION=5
17
17
[[ -z $BASH_TOYS_BATCAT_OPTIONS ]] && export BASH_TOYS_BATCAT_OPTIONS=--number
18
-
19
- export BASH_TOYS_LOADED_DEFAULT_OPTIONS=true
You can’t perform that action at this time.
0 commit comments