Merge branch 'master' of github.com:joshtronic/dotfiles
Conflicts: bash.bashrc
This commit is contained in:
commit
2f99bd89cb
2 changed files with 32 additions and 7 deletions
21
bash.bashrc
21
bash.bashrc
|
@ -44,13 +44,22 @@ export D_CYAN="\[\033[2;36m\]"
|
|||
export D_WHITE="\[\033[2;37m\]"
|
||||
|
||||
# Prompt
|
||||
export PS1="\n$D_CYAN╷┏ $D_GREEN\t$RESET:$D_WHITE\u$RESET@$D_MAGENTA\h$RESET:$B_BLUE\w$YELLOW\$(__git_ps1)\n$D_CYAN╵┗ $D_WHITE\$ $RESET"
|
||||
if [[ $EUID -ne 0 ]];
|
||||
then
|
||||
export PS1="\n$D_CYAN╷┏ $D_GREEN\t$RESET:$D_WHITE\u$RESET@$D_MAGENTA\h$RESET:$B_BLUE\w$YELLOW\$(__git_ps1)\n$D_CYAN╵┗ $D_WHITE\$ $RESET"
|
||||
fortune
|
||||
else
|
||||
export PS1="\n$B_RED╷┏ $D_GREEN\t$RESET:$D_WHITE\u$RESET@$D_MAGENTA\h$RESET:$B_BLUE\w$YELLOW\$(__git_ps1)\n$B_RED╵┗ $D_WHITE# $RESET"
|
||||
fi
|
||||
|
||||
export PS2="$D_WHITE> $RESET"
|
||||
|
||||
# Aliases
|
||||
alias ac="sudo apt-cache"
|
||||
alias ag="sudo apt-get"
|
||||
|
||||
# apt-*
|
||||
alias ac="sudo apt-cache"
|
||||
alias ag="sudo apt-get"
|
||||
# git
|
||||
alias ga="git add"
|
||||
alias gaa="git add $(git rev-parse --show-toplevel)/." # Adds all new files from the project root
|
||||
alias gc="git commit"
|
||||
|
@ -73,7 +82,5 @@ alias grr="git remote rm"
|
|||
alias grro="git remote rm origin"
|
||||
alias grm="git rm"
|
||||
alias gs="git status"
|
||||
|
||||
alias :q="exit"
|
||||
|
||||
fortune
|
||||
# mysql
|
||||
alias msk="mysql scenekids"
|
||||
|
|
18
install.sh
Executable file
18
install.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# TODO check if fortune-mod is installed and if not, install it
|
||||
|
||||
# Clears out the old .bashrc
|
||||
if [ -f ~/.bashrc ];
|
||||
then
|
||||
rm ~/.bashrc
|
||||
fi
|
||||
|
||||
# Grabs the skeleton .bashrc
|
||||
cp /etc/skel/.bashrc ~/.bashrc
|
||||
|
||||
# Appends the custom .bashrc file
|
||||
echo "
|
||||
if [ -f `pwd`/bash.bashrc ] && ! shopt -oq posix; then
|
||||
. `pwd`/bash.bashrc
|
||||
fi" >> ~/.bashrc
|
Loading…
Add table
Add a link
Reference in a new issue