Skip to content

Instantly share code, notes, and snippets.

@megane42
Last active December 20, 2016 02:32
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 megane42/8384076cb2985ed0111c7bbc56f49ec9 to your computer and use it in GitHub Desktop.
Save megane42/8384076cb2985ed0111c7bbc56f49ec9 to your computer and use it in GitHub Desktop.
bash setup
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
# Show Current Git Branch in Prompt
source $HOME/bin/git/contrib/completion/git-prompt.sh
source $HOME/bin/git/contrib/completion/git-completion.bash
export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\W\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
# Draw Emacs as 256 Colors
export TERM="xterm-256color"
#!/bin/bash
mkdir -p $HOME/bin/git/contrib/completion
wget --no-check-certificate -O $HOME/bin/git/contrib/completion/git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
wget --no-check-certificate -O $HOME/bin/git/contrib/completion/git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
wget --no-check-certificate -O $HOME/.bashrc https://gist.githubusercontent.com/megane42/8384076cb2985ed0111c7bbc56f49ec9/raw/.bashrc
# change ls colors
cp /etc/DIR_COLORS $HOME/.dir_colors
sed -i 's/STICKY_OTHER_WRITABLE 30;42/STICKY_OTHER_WRITABLE 30;46/' $HOME/.dir_colors
sed -i 's/OTHER_WRITABLE 34;42/OTHER_WRITABLE 30;46/' $HOME/.dir_colors
eval 'dircolors .dir_colors -b'
@megane42
Copy link
Author

megane42 commented Oct 6, 2016

curl -s https://gist.githubusercontent.com/megane42/8384076cb2985ed0111c7bbc56f49ec9/raw/setup.sh | /bin/bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment