Last active
May 24, 2020 08:56
-
-
Save sprintr/6b4c3c92215a6bbdefd8 to your computer and use it in GitHub Desktop.
Git Bash alias' list
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
alias []="brackets" | |
alias php="winpty php" | |
alias php7="winpty php7" | |
alias serve="winpty php -S localhost:8080 -t ." | |
alias serve7="winpty php7 -S localhost:8080 -t ." | |
alias python="winpty python" | |
alias python3="winpty python3" | |
alias perl="winpty perl" | |
alias ruby="winpty ruby" | |
alias node="winpty node" | |
alias io="winpty iojs" | |
export PS1='\n\[\033[1;36m\]\w \[\033[1;34m\]git\[\e[0m\]:\[\033[1;32m\]`__git_ps1`\n\[\033[1;31m\]>\[\033[1;33m\]>\[\033[1;32m\]>\[\e[0m\] ' | |
# Helper function to organize files in folders of their extension. | |
function mov { | |
if [ "$#" == "1" ]; then | |
# If directory doesn't exist then make one. | |
if [ ! -d $1 ]; then | |
mkdir $1; | |
fi | |
mv *.$1 $1; | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment