-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sshrc
73 lines (58 loc) · 2.09 KB
/
.sshrc
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
function git-branch-name {
git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3-8
}
function git-branch-prompt {
local branch=`git-branch-name`
if [ $branch ]; then printf " [%s]" $branch; fi
}
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
#PS1="\[\033[38;5;222m\][\u@\h:\W]\$(git-branch-prompt)$\[\033[00m\] "
else
#PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
# PS1="\[\033[38;5;222m\][\u@\h:\W]\$(__git_ps1 '(%s)')$\[\033[00m\]"
PS1="\[\033[01;34m\][\u@\h:\W]\$(git-branch-prompt)$\[\033[00m\]"
fi
#local
alias sta='cd /var/www/SalesTeamAutomation'
alias proj='cd /var/www/'
alias psnpsd='cd /var/www/PSNotificationServer/ext/is/powerstandings-domain/'
alias jroll='/var/www/PSNotificationServer/jouleAndRollupProcessor.php all'
alias stapsd='cd /var/www/SalesTeamAutomation/ext/is/powerstandings-domain'
alias gopsn='cd /root/go/src/PSNotificationServer/PSN'
alias goi='go install PSNotificationServer/PSN'
alias gos='PSN -alsologtostderr=true -log_dir="/var/log/psn/" -stderrthreshold=INFO'
function jpush()
{
cd /var/www/sta/cron ; php cron_test.php mshivakumar.lan 1 jp 1 ; cd $OLDPWD
}
function weather()
{
cd /home/weather/ ; php weather.php ; cd $OLDPWD
}
#git
alias gs='git status'
alias gp='git pull'
alias gf='git fetch --all'
# Directory navigation aliases
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
#Go lang
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin