Add bash-git-prompt
This commit is contained in:
parent
b046cc089a
commit
e7e1c8af01
1 changed files with 28 additions and 1 deletions
|
@ -69,10 +69,23 @@ fi
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
# Update .bashrc {{{
|
||||||
|
|
||||||
|
echo "Updating .bashrc..."
|
||||||
|
if cp ~/SetupCockpit/dotfiles/bashrc ~/.bashrc; then
|
||||||
|
echo "${GREEN}Successfully updated .bashrc${NC}"
|
||||||
|
else
|
||||||
|
echo "${ORANGE}There was a problem while updating .bashrc${NC}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
/bin/bash ~/SetupCockpit/separator.sh
|
||||||
|
|
||||||
|
# }}}
|
||||||
|
|
||||||
# Update .bash_aliases {{{
|
# Update .bash_aliases {{{
|
||||||
|
|
||||||
echo "Updating .bash_aliases..."
|
echo "Updating .bash_aliases..."
|
||||||
if cp ~/SetupCockpit/bash_aliases ~/.bash_aliases; then
|
if cp ~/SetupCockpit/dotfiles/bash_aliases ~/.bash_aliases; then
|
||||||
echo "${GREEN}Successfully updated .bash_aliases${NC}"
|
echo "${GREEN}Successfully updated .bash_aliases${NC}"
|
||||||
else
|
else
|
||||||
echo "${ORANGE}There was a problem while updating .bash_aliases${NC}"
|
echo "${ORANGE}There was a problem while updating .bash_aliases${NC}"
|
||||||
|
@ -97,6 +110,20 @@ git config --global alias.br "branch"
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
# Clone bash-git-prompt {{{
|
||||||
|
|
||||||
|
if [ -e ~/.bash-git-prompt ]; then
|
||||||
|
echo "Found existing bash-git-prompt, updating..."
|
||||||
|
cd ~/.bash-git-prompt && git pull
|
||||||
|
else
|
||||||
|
echo "Cloning bash-git-prompt..."
|
||||||
|
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
/bin/bash ~/SetupCockpit/separator.sh
|
||||||
|
|
||||||
|
# }}}
|
||||||
|
|
||||||
# Add MIME type for reading .md files in Firefox (need to add extension too) {{{
|
# Add MIME type for reading .md files in Firefox (need to add extension too) {{{
|
||||||
|
|
||||||
echo "Adding MIME type for .md files in Firefox..."
|
echo "Adding MIME type for .md files in Firefox..."
|
||||||
|
|
Loading…
Add table
Reference in a new issue