-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
.bash_profile
55 lines (43 loc) · 994 Bytes
/
.bash_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
alias ls='ls -GFha '
alias cdg='cd ~/git '
alias st='open -a "Sublime Text" '
alias bp='st ~/.bash_profile '
alias trash='rm -rf ~/.Trash/* '
# Git Aliases
alias get='git '
alias gut='git '
alias got='git '
alias g='git '
alias gi='git init '
alias gs='git status -sb '
alias ga='git add '
alias gc='git commit -m '
alias gac='ga -A && gc '
alias gp='git push '
alias gpo='git push origin '
alias gpom='git push origin master'
alias gr='git rm -r '
alias gb='git checkout -b '
alias gc-='git checkout - '
alias gd='git diff '
function gcl {
git clone ssh://[email protected]/$1/$2.git;
}
function gacp {
git add -A;
git commit -m "$1";
git push origin $2;
}
# Rename Terminal Window - Usage: wn 'window name'
function wn {
printf "\e]2;$1\a"
}
# Rename Terminal Tab - Usage: tn 'tab name'
function tn {
printf "\e]1;$1\a"
}
# Customize Terminal Prompt - Shows: username/../folder:
export PS1='\n\u/../\W/: '
# Add Colour
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced