Last active
December 20, 2016 02:32
-
-
Save megane42/8384076cb2985ed0111c7bbc56f49ec9 to your computer and use it in GitHub Desktop.
bash setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -s https://gist.githubusercontent.com/megane42/8384076cb2985ed0111c7bbc56f49ec9/raw/setup.sh | /bin/bash