-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bash_profile
executable file
·109 lines (91 loc) · 2.95 KB
/
.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Declare Version
###################################
DARKRED=$(tput setaf 160)
echo "$DARKRED Super-Bash Version 1.0"
# Tab Completion scripts for terminal
###################################
if [ -f ~/git-completion.bash ]; then
source ~/git-completion.bash
fi
# Declare Version
###################################
DARKRED=$(tput setaf 160)
echo "$DARKRED Super-Bash Version 2.0"
# Tab Completion scripts for terminal
###################################
if [ -f ~/git-completion.bash ]; then
source ~/git-completion.bash
fi
# Terminals Styles if present
###################################
if [ -f ~/.bash_prompt ]; then
source ~/.bash_prompt
fi
###################################
# Sets defualt terminal location
###################################
# Can be changed to your personal projects directory
alias cddev="cd ~"
###################################
# Git aliases
###################################
alias gaa="git add -A"
alias ga="git add"
alias gcm="git commit -m"
alias gco="git checkout"
alias gcob="git checkout -b"
alias gbd="git branch -D"
alias gf="git fetch"
alias gpu="git pull"
alias gph="git push"
alias gm="git merge"
alias gs="git status"
alias gr="git remote -v"
alias glp="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
#########################################
# Random Shortcuts to normally used apps
#########################################
# Change this path to your default project folders
# alias cddev="cd ~/Projects"
alias ep="atom ~/.bash_profile"
alias epr="atom ~/.bash_prompt"
alias search="cat ~/.bash_history | grep"
#########################################
# Random Shortcuts to normally used apps
#########################################
# Ability to search previous commands
alias search="cat ~/.bash_history | grep"
# Terminals Styles if present
###################################
if [ -f ~/.bash_prompt ]; then
source ~/.bash_prompt
fi
###################################
# Sets defualt terminal location
###################################
# Uncomment this and change to your project directory if you wanted your terminal to autostart there
# eval cd ~/Projects
###################################
# Git aliases
###################################
alias gaa="git add -A"
alias ga="git add"
alias gcm="git commit -m"
alias gcv="git cz"
alias gco="git checkout"
alias gcob="git checkout -b"
alias gbd="git branch -D"
alias gf="git fetch"
alias gpu="git pull"
alias gph="git push"
alias gm="git merge"
alias gs="git status"
alias gr="git remote -v"
alias glp="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
#########################################
# Random Shortcuts to normally used apps
#########################################
# Can be changed to your personal projects directory
alias cddev="cd ~/Projects"
# Ability to search previous commands
alias search="cat ~/.bash_history | grep"