-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
48 lines (47 loc) · 1.12 KB
/
.bashrc
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
# .bashrc
# User specific aliases and functions
#Installs framework then goes back to the originating dir
installfw() {
cd /usr/src/freepbx/framework
./install --dev-links -n
cd -
}
#Create new branch
newbranch() {
git checkout -b $1/$2
}
#Go to src directory
gotosrc() {
cd /usr/src/freepbx/$1
}
#Switch to branch
switchbranch() {
git checkout $1/$2
}
#built in centos
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
#checkout branch in current folder
alias git12='git checkout release/12.0'
alias git13='git checkout release/13.0'
alias git14='git checkout release/14.0'
#installs whatever directory you are in
alias installpwd='fwconsole ma install $(basename $(pwd))'
#uses new branch function nb bugfix FREEPBX-XXXX
alias nb=newbranch
#Goes to src directory src core
alias src=gotosrc
#switches to branch sb bugfix FREEPBX-XXXX
alias sb=switchbranch
#first push of new branch with tracking
alias fp='git push -u origin $(git symbolic-ref HEAD | cut -d/ -f3-)'
#installs framework
alias ifw=installfw
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi