Skip to content

Instantly share code, notes, and snippets.

@denji
Last active May 1, 2022 16:08
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save denji/9530128 to your computer and use it in GitHub Desktop.
Save denji/9530128 to your computer and use it in GitHub Desktop.
My configuration file for the fish shell "nano ~/.config/fish/config.fish" https://github.com/pid/fishshellConfig
# Remove fish default greeting
set --erase fish_greeting
# so our brew install override the commands from the system
set -x PATH /usr/local/sbin $PATH
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Theme
set fish_theme robbyrussell
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*)
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/
# Example format: set fish_plugins autojump bundler
set fish_plugins brew rvm sublime tmux php
# Path to your custom folder (default path is $FISH/custom)
#set fish_custom $HOME/dotfiles/oh-my-fish
# Load oh-my-fish configuration.
. $fish_path/oh-my-fish.fish
# Setup Workspace
# Make environment workspace: mkdir -p $HOME/workspace/{www,go/{src,bin,pkg}}
# http://superuser.com/a/679180/205366
# http://gvsigce.sourceforge.net/wiki/index.php/Compiling_the_C/C++_support_libraries#Home_folder_and_workspace
set -x VAGRANT_HOME /Volumes/WORK/VMs/vagrant.d
set -x WORKSPACE $HOME/workspace
# ruby
#set -x PATH=$(brew --prefix ruby)/bin:$PATH
# Phalcon - Zephir
#set -x PATH=$PATH:~/.tools/zephir/bin
# GoLang / Help: $ go help gopath
set -x GOPATH $WORKSPACE/go
# So we can run go commands and go programs we have compiled ourselves
set -x PATH $PATH /usr/local/go/bin $GOPATH/bin
# Boost Ruby
set -x RUBY_GC_HEAP_INIT_SLOTS 1000000 # 1M
set -x RUBY_GC_HEAP_FREE_SLOTS 500000 # 0.5M
set -x RUBY_GC_HEAP_GROWTH_FACTOR 1.1
set -x RUBY_GC_HEAP_GROWTH_MAX_SLOTS 10000000 # 10M
set -x RUBY_GC_MALLOC_LIMIT_MAX 1000000000 # 1G
set -x RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR 1.1
# set -x RUBY_GC_OLDMALLOC_LIMIT 500000000 # 500M
# set -x RUBY_GC_OLDMALLOC_LIMIT_MAX 1000000000 # 1G
# set -x RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR 1.1
# Make the blue color for directories more readable
set -x LSCOLORS Exfxcxdxbxegedabagacad
# this is needed to avoid strange python stack backtrace complaining about UTF-8 when
# running sphinx. Found it by googling
set -x LC_ALL en_US.UTF-8
set -x LANG en_US.UTF-8
set -x JULIA_EDITOR textmate
# secret key
set -x HOMEBREW_GITHUB_API_TOKEN 'your key brew in github'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment