Skip to content

Instantly share code, notes, and snippets.

@elhenro
Created May 9, 2019 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elhenro/c9ae54df2c43aacb56ac60951672825f to your computer and use it in GitHub Desktop.
Save elhenro/c9ae54df2c43aacb56ac60951672825f to your computer and use it in GitHub Desktop.
bash rc profile
# ~/.bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
# go
export PATH="$PATH:$HOME/go/bin"
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
#locale
LANG="en_US.utf8"
export LANG
# default ide
export VISUAL=vim
export EDITOR="$VISUAL"
alias listopenports='netstat -lntu';
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
alias searchBashHistory='cat ~/.bash_history | fzf';
alias clippy='xclip -selection clipboard';
alias ls='ls --color=auto'
alias l='ls -lah --color=auto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment