OILS
/
demo
/ starship-like.sh
View on Github
|
oilshell.org
15 lines, 8 significant
1
#!/usr/bin/env bash
2
#
3
# Usage:
4
# source demo/starship-like.sh
5
6
starship_preexec() {
7
local s
8
s=$(which cat)
9
echo
"
$s
"
10
}
11
12
trap
'
starship_preexec
'
DEBUG
13
14
shopt --set xtrace_rich
15
set -x