Skip to content

Instantly share code, notes, and snippets.

@isholgueras
Last active December 16, 2015 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isholgueras/5382275 to your computer and use it in GitHub Desktop.
Save isholgueras/5382275 to your computer and use it in GitHub Desktop.
Configure some things of Linux Mint DE
# Configurations of editor and bash
# as root, in /etc/vim/vimrc uncomment
syntax on
# as root, in /etc/bash.bashrc add after 'alias ls'
alias ll='ls -l --color=auto'
# Config for apache, php, mysql,...
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/rewrite.load
cd ..
echo "ServerName localhost" >> apache2.conf
service apache2 restart
# Config for Drupal and Drush
apt-get install php-pear php-apc
pear channel-discover pear.drush.org
pear install drush/drush
pear install Console_Table
# As aidan
touch ~/.bashrc ~/.profile
vim ~/.bash_profile
# Add this without #:
# . ~/.profile
# . ~/.bashrc
vim ~/.bashrc
# Add this without #:
# Add prompt for git. Cool, but awful colors...
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
export PS1='\[\033[1;32m\]\u@\h \[\033[1;34m\]\w\[\033[0m\]\[\033[0;37m\]$(parse_git_branch)\[\033[0m\] $ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment