Skip to content

Instantly share code, notes, and snippets.

@rdok
Last active August 3, 2018 19:52
Show Gist options
  • Save rdok/4e9b7a589f63c3d8219f to your computer and use it in GitHub Desktop.
Save rdok/4e9b7a589f63c3d8219f to your computer and use it in GitHub Desktop.
#!/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