clap is weird

This commit is contained in:
2024-11-20 23:18:51 +01:00
parent e45dbad2b0
commit 885a3e1d37
3 changed files with 74 additions and 17 deletions
+8 -3
View File
@@ -2,15 +2,20 @@
export PATH="$PATH:$PWD/target/debug/"
pid=( $(ps -o ppid) )
arg_pid=" --pid ${pid[-2]} "
nav() {
cd "$(navigate ${pid[-2]} $*)"
cd "$(navigate ${arg_pid} $*)"
}
push() {
cd "$(navigate ${pid[-2]} push $*)"
cd "$(navigate push ${arg_pid} $*)"
}
pop() {
cd "$(navigate ${pid[-2]} pop $*)"
cd "$(navigate pop ${arg_pid} $*)"
}
stack() {
"navigate stack ${arg_pid}"
}