OILS / demo / starship-like.zsh View on Github | oilshell.org

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