Skip to content

Instantly share code, notes, and snippets.

View MkMan's full-sized avatar
🇵🇸

Mustafa MkMan

🇵🇸
View GitHub Profile
@MkMan
MkMan / bash-config.sh
Last active September 27, 2020 01:26
Frontend Unix setup and config
# nvm setup
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
find-up () {
path=$(pwd)
while [[ "$path" != "" && ! -e "$path/$1" ]]; do
path=${path%/*}
done