-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc_linux
More file actions
29 lines (21 loc) · 886 Bytes
/
bashrc_linux
File metadata and controls
29 lines (21 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Enable custom scripts in ~/bin/
export PATH=$HOME/bin:$PATH
# Make svn diff colours work
export TERM=xterm-color
# (Linux) Make directories more visible on a black background: i.e. light blue, not dark blue
#export LS_COLORS=$(echo $LS_COLORS|sed 's/di=01;34/di=01;36/')
#eval $(dircolors|sed 's/di=01;34/di=01;36/')
# Aliases for Linux
alias ls="ls --color"
alias ssh="ssh -A"
# Aliases for Mac
#alias ls="ls -G"
# Prompt for Mac
#export PS1="[Mac] \w \$ "
export PATH=~/dev/linux-scripts:$PATH
# prompt
export PS1="\[\e[1;32m\]F<>C\/S\[\e[0m\] [\A\$(jobs | awk '{ print \$3 }' | tr '\n' '|' | awk '{ print \"\[\033[1;31m|\]\" \$1 \"\[\033[0m\]\" }') \[\033[1;34m\]\$(git branch 2>/dev/null | grep '*' | cut -c 3-)\[\033[0m\] \W$] "
# ssh keychain on WSL
# # once: sudo apt-get install keychain
#/usr/bin/keychain --nogui ~/.ssh/YOUR_KEY
#source $HOME/.keychain/$HOSTNAME-sh