Last active
August 28, 2018 09:05
-
-
Save obbaeiei/121edc952bd716575488af66f5c9e91d 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
#eval $(thefuck --alias) | |
function myPk() { | |
cd ~/workspaces/obbaeiei/my-code; | |
node -e "a = require('stellar-sdk').Keypair.fromSecret(\"$1\").publicKey(); console.log(a)"; | |
} | |
alias work1='cd ~/workspaces/thesixnetwork/six-web-wallet' | |
alias work2='cd ~/go/src/github.com/thesixnetwork/six.network' | |
# Set utf-8 encoding | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
# GO | |
export GOROOT=~/bin/go | |
export GOPATH=~/go | |
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH | |
# Set CLICOLOR if you want Ansi Colors in iTerm2 | |
export CLICOLOR=1 | |
# Set colors to match iTerm2 Terminal Colors | |
export TERM=xterm-256color | |
# Set Colors when grep | |
export GREP_OPTIONS='--color=always' | |
# Git branch in prompt. | |
git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
# Hg branch in prompt. | |
hg_branch() { | |
hg branch 2> /dev/null | sed -e 's/\(.*\)/ (\1)/' | |
} | |
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$YELLOW[\T] $RED"obba™" $PURPLE"☿" $GREEN\w$CYAN\$(git_branch)\$(hg_branch)$BLUE "➢" $RESETCOLOR" | |
} | |
prompt | |
# 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