mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-11 07:55:05 +00:00
Fish: addpath and libpath
This commit is contained in:
parent
01a0e0c1a6
commit
dc5fc49a3a
8
.config/fish/functions/addpath.fish
Normal file
8
.config/fish/functions/addpath.fish
Normal file
|
@ -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
|
8
.config/fish/functions/libpath.fish
Normal file
8
.config/fish/functions/libpath.fish
Normal file
|
@ -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
|
Loading…
Reference in a new issue