Created
March 31, 2020 19:49
-
-
Save saulshanabrook/0fecac0df7c40de42b6d944ad01c1210 to your computer and use it in GitHub Desktop.
This file contains 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
## | |
# Personal | |
## | |
# mkdir -p ~/bin | |
prepend_path ~/bin | |
# prepend_path ~/.local/bin | |
prepend_path /usr/local/bin | |
prepend_path /usr/local/sbin | |
# prepend_path ~/installs/kwm/bin | |
prepend_path ~/installs/platform-tools/ | |
prepend_path /usr/local/opt/llvm/bin | |
prepend_path /usr/local/opt/python/libexec/bin | |
prepend_path /usr/local/opt/node@10/bin | |
## | |
# Conda | |
## | |
test -e $HOME/.cargo/env; and source $HOME/.cargo/env | |
. /usr/local/Caskroom/miniconda/base/etc/fish/conf.d/conda.fish | |
# Reset fish prompts to empty | |
function fish_prompt | |
end | |
function fish_right_prompt | |
end | |
function __auto-conda --on-variable PWD --description 'Auto activate conda env based on directory name' | |
status --is-command-substitution; and return | |
set __env_name (basename $PWD) | |
if test \( -d "/usr/local/Caskroom/miniconda/base/envs/$__env_name" \) -a \( __env_name != "$CONDA_DEFAULT_ENV" \) | |
conda activate "$__env_name" | |
end | |
end | |
# run once | |
__auto-conda | |
## | |
# Docker | |
## | |
# eval (docker-machine env default) | |
# alias docker-composex "docker-compose --x-networking" | |
# alias docker-cleanup 'docker-machine ssh default \'docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc spotify/docker-gc\'' | |
# alias docker-cleanup-volumes 'docker-machine ssh default \'docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(readlink -f /var/lib/docker):/var/lib/docker --rm martin/docker-cleanup-volumes\'' | |
## | |
# Nix | |
## | |
# Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that | |
# <nixpkgs> paths work when the user has fetched the Nixpkgs | |
# channel. | |
set -x NIX_PATH "nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs" | |
set -x NIX_SSL_CERT_FILE ~/.nix-profile/etc/ssl/certs/ca-bundle.crt | |
prepend_path ~/.nix-profile/bin | |
## | |
# Git | |
## | |
# prepend_path /usr/local/Cellar/git/2.1.2/libexec/git-core/ | |
## | |
# Go | |
## | |
# prepend_path /usr/local/opt/go/libexec/bin | |
# set -x GOROOT ~/installs/go | |
# prepend_path $GOROOT/bin | |
set -x GOPATH ~/p/go | |
prepend_path $GOPATH/bin | |
# set -x GO15VENDOREXPERIMENT 1 | |
# prepend_path ~/go/bin | |
# prepend_path /usr/local/opt/go/libexec/bin | |
# prepend_path /Users/saul/installs/FlameGraph | |
## | |
# Clojure | |
## | |
# set -x LEIN_FAST_TRAMPOLINE True | |
# set -x LEIN_JVM_OPTS "-XX:TieredStopAtLevel=1" | |
## | |
# Ruby | |
## | |
prepend_path /usr/local/opt/ruby/bin | |
## | |
# Haskell | |
## | |
prepend_path ~/.ghcup/bin | |
# prepend_path ~/.cabal/bin | |
## | |
# Python | |
## | |
# prepend_path /usr/local/share/pypy3 | |
# prepend_path /usr/local/miniconda3/bin | |
# source (conda info --root)/etc/fish/conf.d/conda.fish | |
## | |
# Android Studio | |
## | |
# set -x STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.8*.jdk | |
# ## | |
# # Android | |
# ## | |
# set -x JAVA_HOME (/usr/libexec/java_home) | |
# set -x ANDROID_HOME /usr/local/opt/android-sdk | |
# prepend_path /Applications/Genymotion\ Shell.app/Contents/MacOS/ | |
# prepend_path /Applications/Genymotion.app/Contents/MacOS/ | |
## | |
# Javascript | |
## | |
# yarn | |
# prepend_path /usr/local/Cellar/node/8.1.0_1/bin | |
set -x NODE_OPTIONS "--max-old-space-size=4096" | |
set -x PUPPETEER_SKIP_CHROMIUM_DOWNLOAD "true" | |
## | |
# clang-tidy | |
## | |
# prepend_path /usr/local/opt/llvm/bin | |
# Sublime | |
## | |
# set -x EDITOR '/usr/local/bin/atom --wait' | |
## | |
# Class Specific | |
## | |
# alias cd-cs230 'cd "/Users/saul/Google Drive/School/UMass/2015-16.Spring/CS 230"' | |
# function cs230 | |
# ssh -t -p 3022 -i ~/.ssh/id_rsa student@127.0.0.1 "cd /media/sf_CS_230/"(pwd | sed 's`/Users/saul/Google Drive/School/UMass/2015-16.Spring/CS 230/``')" && $argv" 2> /dev/null | |
# end | |
# set warnings '-std=c99 -Wall \ | |
# -Wno-missing-braces -Wextra -Wno-missing-field-initializers -Wformat=2 \ | |
# -Wswitch-default -Wswitch-enum -Wcast-align -Wpointer-arith \ | |
# -Wbad-function-cast -Wstrict-overflow=5 -Winline \ | |
# -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code \ | |
# -Wlogical-op -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls \ | |
# -ggdb3 \ | |
# -O0 \ | |
# -fno-omit-frame-pointer -ffloat-store -fno-common -fstrict-aliasing \ | |
# -lm' | |
# # -Werror \ | |
# # -Wstrict-prototypes | |
# # -pedantic | |
# # -Wold-style-definition \ | |
# function c-file | |
# basename $argv .c | |
# end | |
# function cs230-gcc | |
# cs230 "gcc $warnings $argv -o "(c-file $argv)" && ./"(c-file $argv) | |
# end | |
# function cs230-gdb | |
# cs230 "gcc $warnings $argv -g -o "(c-file $argv) "&& gdb ./"(c-file $argv) | |
# end | |
test -e ~/.iterm2_shell_integration.fish ; and source ~/.iterm2_shell_integration.fish | |
function iterm2_print_user_vars | |
iterm2_set_user_var condaEnv "$CONDA_DEFAULT_ENV" | |
end | |
# OPAM configuration | |
# . /Users/saul/.opam/opam-init/variables.fishset -g fish_user_paths "/usr/local/opt/node@10/bin" $fish_user_paths | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment