-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
executable file
·59 lines (52 loc) · 1.78 KB
/
.profile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This should really all be in .bashrc, further the file name should be
# .bash_profile and it should load the appropriate .bashrc...
echo loading.profile
export PATH=/usr/local/Crosspack-AVR/bin:/opt/local/bin:/opt/local/sbin:$PATH
#PS1="\n\[\e[0;32m\]<\[\033[0;31m\]\h\[\e[0;32m\]:\[\033[0;37m\]\u\[\033[0;32m\]>
#[\[\033[0;34m\]\D{%F}\[\033[0;32m\]] \[\033[0;36m\]\w\[\033[0;30m\]\n"
PS1="\n\[\e[0;32m\]<\[\033[0;31m\]\h\[\e[0;32m\]:\[\033[0;37m\]\u\[\033[0;32m\]> \[\033[0;36m\]\w\[\033[0;37m\]\n"
alias ll='ls -l'
alias cl='clear'
alias add='git add'
alias commit='git commit'
alias push='git push'
alias status='git status'
alias log='git log'
alias cl='clear'
alias lss='ls -la | grep "^d" && ls -la | grep -v "^d"'
alias vim='vim73'
alias emacs=/usr/local/bin/emacs
mmvim () {
local f
for f; do
test -e "$f" || touch "$f"
done
open -a MacVim "$@"
}
export TERM=xterm-color
export LS_OPTIONS='--color=auto'
export CLICOLOR=1
export LSCOLORS='ExcxfxfxBxhxhxhxhxhxhx'
#export PATH=~/DATA/scripts:$PATH
export CVSROOT=":ext:[email protected]:/Users/_cvs"
#export CVSROOT=":ext:[email protected]:/usr/local/cvs"
export CVS_RSH=ssh
#put string [bash] hostname::/full/directory/path in iTerm title
#echo -ne "\033]2;${HOSTNAME%.*}:$PWD\a"
#put penultimate and final directory in the iTerm tab
#echo -ne "\e]1;$(basename $(dirname $PWD))/\W\[\a\]"
#echo -ne "\033]1;$PWD\a"
PROMPT_COMMAND='echo -ne "\033]2;${HOSTNAME%.*}:$PWD\a"'
# $1 = type; 0 - both, 1 - tab, 2 - title
# rest = text
#setTerminalText () {
## echo works in bash & zsh
#local mode=$1 ; shift
#echo -ne "\033]$mode;$@\007"
#}
#stt_both () { setTerminalText 0 $@; }
#stt_tab () { setTerminalText 1 $@; }
#stt_title () { setTerminalText 2 $@; }
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi