Created
October 6, 2017 17:54
-
-
Save medihack/5e9f67f3adecaf09e11238a8313c0520 to your computer and use it in GitHub Desktop.
Some usefull .bashrc addons.
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
# Load pyenv automatically | |
export PATH="~/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" | |
# Load nvm automatically | |
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 | |
# Add RVM to PATH for scripting | |
export PATH=$PATH:$HOME/.rvm/bin | |
# Android Developer Toolkit (ADT) | |
export PATH=$PATH:/opt/adt-bundle/sdk/platform-tools:/opt/adt-bundle/sdk/tools | |
# Disable Software Flow Control (XON/XOFF flow control) | |
# Solves the problem that Vim hangs when pressing Ctrl+s | |
# (but can then be resumed with Ctrl+q) | |
stty -ixon | |
# This is GOLD for finding out what is taking so much space on your drives! | |
alias diskspace="du -S | sort -n -r |more" | |
# Show me the size (sorted) of only the folders in this directory | |
alias folders="find . -maxdepth 1 -type d -print | xargs du -sk | sort -rn" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment