mirror of
https://github.com/pfloos/quack
synced 2024-12-22 20:34:46 +01:00
17 lines
276 B
Plaintext
17 lines
276 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
QUACK_ROOT="/NOT/FOUND"
|
||
|
case "$(ps -p $$ -ocomm=)" in
|
||
|
"zsh")
|
||
|
QUACK_ROOT=$(dirname $0)
|
||
|
;;
|
||
|
*)
|
||
|
QUACK_ROOT=$(dirname ${BASH_SOURCE}[0])
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
export QUACK_ROOT="$( cd $QUACK_ROOT; pwd -P )"
|
||
|
|
||
|
export PATH=${QUACK_ROOT}/bin:$PATH
|
||
|
|