scripts/applications/fish

48 lines
1.2 KiB
Plaintext
Raw Normal View History

# vim: syntax=fish:
# launch tmux if we're in an interactive terminal emulator
if status is-interactive
2019-07-05 19:09:01 -07:00
and not status is-login
and test -z "$TMUX"
2019-07-05 19:09:01 -07:00
exec tmux new-session
end
# bootstrapping information
2019-07-29 03:35:19 -07:00
# required universal variables:
# - _agw_dir_bin = volatile binary storage
# - _agw_dir_rc = the directory holding this repository
# - _agw_dir_scripts = the directory for user-facing scripts
# - _agw_dir_src = non-volatile source code storage
switch (uname)
case Linux
set -gx CC clang
set -gx CXX clang++
2019-07-29 03:35:19 -07:00
set -gx GOPATH ~/go
set -Ux _agw_dir_bin ~/bin
set -Ux _agw_dir_rc ~/src/git-scripts
set -Ux _agw_dir_scripts ~/src/scripts
set -Ux _agw_dir_src ~/src
case Darwin
set -gx CMAKE_PREFIX_PATH /usr/local/opt/qt/
2019-07-27 05:32:46 -07:00
set -gx CPPFLAGS "-I/usr/local/opt/ruby/include"
set -gx DISTCC_HOSTS "192.168.1.2,cpp"
set -gx LDFLAGS "-L/usr/local/opt/ruby/lib"
2019-07-27 05:32:46 -07:00
set -gx fish_user_paths "/usr/local/opt/ruby/bin" $fish_user_paths
set -Ux _agw_dir_bin ~/Binaries
set -Ux _agw_dir_rc ~/Sources/scripts
set -Ux _agw_dir_scripts ~/Scripts
set -Ux _agw_dir_src ~/Sources
2019-06-28 17:33:53 -07:00
end
2019-06-18 09:13:09 -07:00
# execute scripts
2019-06-28 17:35:31 -07:00
if test -f ~/.cargo/env
2019-07-05 19:09:01 -07:00
source ~/.cargo/env
2019-06-28 17:35:31 -07:00
end
for f in (find $_agw_dir_scripts/fish -type f)
source $f
end
## EOF