Skip to content

Instantly share code, notes, and snippets.

@felhix
Created June 29, 2017 16:40
Show Gist options
  • Select an option

  • Save felhix/d29aa693d7092625059249343c057f39 to your computer and use it in GitHub Desktop.

Select an option

Save felhix/d29aa693d7092625059249343c057f39 to your computer and use it in GitHub Desktop.
# ~/.bash_profile
[[ -s ~/.bashrc ]] && source ~/.bashrc
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
#Aliases files
alias stt='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
#Aliases basic commands
alias ls='ls -GFh'
alias ll='ls -l'
#Aliases paths
alias cdthp='cd Documents/Projets/Code/thp/'
alias githubio='cd Documents/Projets/Code/felhix.github.io/'
#Aliases Git
alias gc='git commit -m'
alias ga='git add .'
alias gs='git status'
#Aliases Rails
alias rc='rails console'
alias rs='rails server'
#Aliases Python
alias python='python3'
alias mapit='python ~/Documents/Projets/Code/python/AutomateBoringStuff/mapit/mapit.py'
function prompt {
local BLACK="\[\033[0;30m\]"
local BLACKBOLD="\[\033[1;30m\]"
local RED="\[\033[0;31m\]"
local REDBOLD="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local GREENBOLD="\[\033[1;32m\]"
local YELLOW="\[\033[0;33m\]"
local YELLOWBOLD="\[\033[1;33m\]"
local BLUE="\[\033[0;34m\]"
local BLUEBOLD="\[\033[1;34m\]"
local PURPLE="\[\033[0;35m\]"
local PURPLEBOLD="\[\033[1;35m\]"
local CYAN="\[\033[0;36m\]"
local CYANBOLD="\[\033[1;36m\]"
local WHITE="\[\033[0;37m\]"
local WHITEBOLD="\[\033[1;37m\]"
local RESETCOLOR="\[\e[00m\]"
export PS1="\n$RED\u $PURPLE@ $GREEN\w $RESETCOLOR$GREENBOLD\$(git branch 2> /dev/null)\n $BLUE[\#] → $RESETCOLOR"
export PS2=" | → $RESETCOLOR"
}
prompt
# TORCH
export PATH=$PATH://Users/felix/Documents/Projets/Code/torch/install/bin
# Setting PATH for Python 3.5
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
export PATH="$HOME/.rbenv/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment