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
6starship_preexec() {
7 local s
8 s=$(which cat)
9 echo "$s"
10}
11
12trap 'starship_preexec' DEBUG
13
14shopt --set xtrace_rich
15set -x