Created
January 3, 2018 12:09
-
-
Save dhpollack/942116cdef2be28c6a95b40823db56aa to your computer and use it in GitHub Desktop.
my fish activate function for torch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function torch_activate | |
set -gx TORCH_BASE_DIR '/home/david/Programming/repos/torch/torch' | |
set -gx LUA_PATH '{$TORCH_BASE_DIR}/install/share/lua/5.1/?.lua;{$TORCH_BASE_DIR}/install/share/lua/5.1/?/init.lua' | |
set -gx LUA_CPATH '{$TORCH_BASE_DIR}/install/lib/lua/5.1/?.so' | |
set -gx PATH {$TORCH_BASE_DIR}/install/bin $PATH | |
set -gx LD_LIBRARY_PATH {$TORCH_BASE_DIR}/install/lib $LD_LIBRARY_PATH | |
set -gx DYLD_LIBRARY_PATH {$TORCH_BASE_DIR}/install/lib $DYLD_LIBRARY_PATH | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment