42 lines
984 B
Fish
42 lines
984 B
Fish
# vim: syntax=fish:
|
|
|
|
# launch tmux if we're in an interactive terminal emulator
|
|
if status is-interactive
|
|
and not status is-login
|
|
and test -z "$TMUX"
|
|
|
|
exec tmux new-session
|
|
end
|
|
|
|
# bootstrapping information
|
|
switch (uname)
|
|
case Linux
|
|
set -gx CC clang
|
|
set -gx CXX clang++
|
|
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/
|
|
set -gx DISTCC_HOSTS "192.168.1.2,cpp"
|
|
set -gx fish_user_paths "/usr/local/opt/ruby/bin" $fish_user_paths
|
|
set -gx LDFLAGS "-L/usr/local/opt/ruby/lib"
|
|
set -gx CPPFLAGS "-I/usr/local/opt/ruby/include"
|
|
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
|
|
end
|
|
|
|
# execute scripts
|
|
if test -f ~/.cargo/env
|
|
source ~/.cargo/env
|
|
end
|
|
|
|
for f in (find $_agw_dir_scripts/fish -type f -name '*.fish')
|
|
source $f
|
|
end
|
|
|
|
## EOF
|