diff options
| -rw-r--r-- | .bash_profile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..4b4f9b0 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,64 @@ +# defaultscheme "exfxcxdxbxegedabagacad" +export CLICOLOR=1 +export LSCOLORS=gxfxcxdxbxegedabagacad + +export HISTSIZE=2000 # History size +export IGNOREEOF=42 # Ignore Ctrl+D logout terminal session +export HISTCONTROL=erasedups # remove consecutive history entries +export EDITOR='vim' # Default editor +export TERM="xterm-256color" +export HOMEBREW_GITHUB_API_TOKEN="19cbee6c4c8d53094849d8c08042f686718fedde" +export PS1="[a14m] \W \$ " +export LC_ALL=en_US.UTF-8 +export LANG=en_US.UTF-8 +export GPG_TTY=$(tty) + +# ==== bash completion +if [ -f $(brew --prefix)/etc/bash_completion ]; then + . $(brew --prefix)/etc/bash_completion +fi + +# ==== GPG SSH Configurations +unset SSH_AGENT_PID +[[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]] && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" + +# ==== Aliases +alias wttr='curl http://wttr.in/berlin' +alias la='ls -a' +alias srv="npx http-server" # start simple server +alias grep='grep --color=auto' # enable coloring all the time +alias tagme='ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)' +alias skipci='git commit --allow-empty -m "--skip-ci"' +# alias g='git' +# # look up the original completion command and replace the last with the alias +# complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g + +# ==== Aliased Directories +alias spc="cd ~/Work/Space/" +alias infg="cd ~/Work/Infographics/" +alias cf="cd ~/Work/Infographics/contentful-starter" +alias sw="cd ~/Work/Infographics/sapera-website-2.0" +alias gol="cd ~/Work/Space/game-of-life" + +# ==== $PATH modifications +# Adding local/bin PATH before /bin PATH +export PATH="/usr/local/bin:$PATH" +export PATH="/usr/local/sbin:$PATH" + +# ==== rbenv config. +export PATH="$HOME/.rbenv/bin:$PATH" +eval "$(rbenv init -)" + +# ==== NVM config +# node version manager from homebrew ,the source line to move install location +# and prevent Node installs being lost upon upgrading nvm. +export NVM_DIR=~/.nvm +source $(brew --prefix nvm)/nvm.sh + +# ==== MISC config +# allow fuck to be alias of thefuck +eval $(thefuck --alias) + +# ==== MISC CowSay +fortune | cowsay | lolcat +source "$HOME/.cargo/env" |
