4
1
mirror of https://github.com/pfloos/quack synced 2024-12-22 12:23:50 +01:00
quack/quack.rc

18 lines
346 B
Plaintext
Raw Normal View History

#!/bin/bash
QUACK_ROOT="/NOT/FOUND"
case "$(ps -p $$ -ocomm=)" in
"zsh")
2024-11-25 11:25:17 +01:00
QUACK_ROOT=$(dirname "$0")
;;
*)
2024-11-25 11:10:27 +01:00
QUACK_ROOT=$(dirname "${BASH_SOURCE[0]}")
;;
esac
export QUACK_ROOT="$( cd $QUACK_ROOT; pwd -P )"
2024-11-25 11:25:17 +01:00
export PATH="${QUACK_ROOT}/bin:$PATH"
2024-11-26 19:31:44 +01:00
export LD_LIBRARY_PATH="${QUACK_ROOT}/src/cuda/build:$LD_LIBRARY_PATH"