From dc5fc49a3a7a9fd4d1bdf1fd81075973fa6344d6 Mon Sep 17 00:00:00 2001 From: Phantop Date: Wed, 20 May 2020 15:08:04 -0400 Subject: [PATCH] Fish: addpath and libpath --- .config/fish/functions/addpath.fish | 8 ++++++++ .config/fish/functions/libpath.fish | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 .config/fish/functions/addpath.fish create mode 100644 .config/fish/functions/libpath.fish diff --git a/.config/fish/functions/addpath.fish b/.config/fish/functions/addpath.fish new file mode 100644 index 0000000..affd6cd --- /dev/null +++ b/.config/fish/functions/addpath.fish @@ -0,0 +1,8 @@ +# Defined in /tmp/fish.kGwYO8/addpath.fish @ line 1 +function addpath + if test $argv + set PATH $argv $PATH + else + set PATH (pwd) $PATH + end +end diff --git a/.config/fish/functions/libpath.fish b/.config/fish/functions/libpath.fish new file mode 100644 index 0000000..a514469 --- /dev/null +++ b/.config/fish/functions/libpath.fish @@ -0,0 +1,8 @@ +# Defined in /tmp/fish.0ygHEX/libpath.fish @ line 1 +function libpath + if test $argv + export LD_LIBRARY_PATH=$argv LIBGL_DRIVERS_PATH=$argv EGL_DRIVERS_PATH=$argv mesa_glthread=true AMD_DEBUG=nohyperz + else + export LD_LIBRARY_PATH=(pwd) LIBGL_DRIVERS_PATH=(pwd) EGL_DRIVERS_PATH=(pwd) mesa_glthread=true AMD_DEBUG=nohyperz + end +end