Skip to content

Instantly share code, notes, and snippets.

@dhpollack
Created January 3, 2018 12:09
Show Gist options
  • Save dhpollack/942116cdef2be28c6a95b40823db56aa to your computer and use it in GitHub Desktop.
Save dhpollack/942116cdef2be28c6a95b40823db56aa to your computer and use it in GitHub Desktop.
my fish activate function for torch.
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