Created
March 4, 2018 05:08
-
-
Save ezeeyahoo/15f24931ff799f72fe7c3d3c09ef3afc to your computer and use it in GitHub Desktop.
.config/fish/config.fish
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
# PATH | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/.local/bin:`pyenv which python`" | |
export EDITOR='subl -w' | |
export WORKON_HOME=$HOME/Dev/.local/share/virtualenvs/ | |
export PROJECT_HOME=$HOME/Dev | |
export USER_NAME="eshant" | |
# Virtual Environment | |
export WORKON_HOME=$HOME/Dev/.local/share/virtualenvs/ | |
export PROJECT_HOME=$HOME/Dev | |
# FileSearch | |
function f | |
# `"$1" ${@:2}` translates to `$argv[1] $argv[2..-1]` - because there's no word splitting in fish | |
# And that is equivalent to just `$argv`. | |
find . -iname $argv | |
end | |
function r | |
grep $argv -R . | |
end | |
#mkdir and cd | |
# function mkcd() { mkdir -p "$@" && cd "$_" } | |
function mkcd | |
# You might want error handling here if you pass more than one argument. | |
mkdir -p $argv | |
cd $argv | |
end | |
# Aliases | |
alias cppcompile='c++ -std=c++11 -stdlib=libc++' | |
# Use sublimetext for editing config files | |
alias fishconfig="subl .config/fish/config.fish" | |
alias envconfig="subl ~/Dev/config/env.sh" | |
# Python setup | |
# alias virtualenv2='$HOME/Library/Python/2.7/bin/virtualenv' | |
# alias virtualenv3='$HOME/Library/Python/3.6/bin/virtualenv' | |
# alias postmkvirtualenv='$HOME/Dev/.postmkvirtualenv.sh' | |
# Golang | |
# export GOPATH=$HOME/Dev/go | |
# export GOROOT=/usr/local/opt/go/libexec | |
# export PATH=$PATH:$GOPATH/bin | |
# export PATH=$PATH:$GOROOT/bin | |
# FIX ValueError: unknown locale: UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/. iterm2_shell_integration.fish | |
pyenv init - | source |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment