Last active
August 3, 2018 19:52
-
-
Save rdok/4e9b7a589f63c3d8219f to your computer and use it in GitHub Desktop.
wget -O - https://gist.githubusercontent.com/rdok/4e9b7a589f63c3d8219f/raw/08e897df0981f204b182f9a103d08d43d2c20080/prepare_terminal.sh | bash
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
#!/usr/bin/env bash | |
boldBlue="\[\e[1;34m\]" | |
yellow="\[\e[0;33m\]" | |
green="\[\e[0;32m\]" | |
resetColor="\[\e[0m\]" | |
username="\u" | |
hostname="\h" | |
git="\h" | |
currentDir="\w" | |
git="\$(__git_ps1)" | |
accessSymbol="\$" | |
PS1="$boldBlue$username@$hostname:" | |
PS1+="$yellow$currentDir" | |
PS1+="$green$git" | |
PS1+="\n" | |
PS1+="$resetColor$accessSymbol " | |
echo $PS1 >> ~/.bash_prompt | |
echo 'export VISUAL=vim' >> ~/.bash_prompt | |
echo 'export EDITOR="$VISUAL"' >> ~/.bash_prompt | |
echo ' | |
set-title(){ | |
ORIG=$PS1 | |
TITLE="\e]2;$@\a" | |
PS1=${ORIG}${TITLE} | |
} ' >> ~/.bash_prompt | |
# Bash_Aliases | |
echo 'alias gs="git status" | |
alias gal="git add --all" | |
alias gcm="git commit -m" | |
alias pt="./vendor/bin/phpunit" | |
alias pa="php artisan"' >> ~/.bash_prompt | |
echo 'source ~/.bash_prompt` >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment