-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
127 lines (100 loc) · 3.67 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
#export HISTCONTROL=ignoredups
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[01;31m\]"
YELLOW="\[\033[01;33m\]"
GREEN="\[\033[01;32m\]"
BLUE="\[\033[01;34m\]"
MAGENTA="\[\033[01;35m\]"
NO_COLOR="\[\033[0m\]"
PS1="$YELLOW\u$RED@$GREEN\h$NO_COLOR:$BLUE\w$MAGENTA\$(parse_git_branch)$NO_COLOR "
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
# Set terminal colors. For emacs themes to work etc
export TERM=xterm-256color
export PATH="$HOME/.local/bin:$PATH"
# set default editor
export ALTERNATE_EDITOR=""
export EDITOR=emacsclient
export PUBLICIP=$(curl -s http://whatismyip.akamai.com/)
# Define your own aliases here ...
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
# [ -z "$SSH_CLIENT" ] && . $HOME/.ssh-agent
#~/adm/bash_completion.sh
alias e="emacsclient -t"
alias keyon="ssh-add -t 10800"
alias keyoff='ssh-add -D'
alias keylist='ssh-add -l'
alias golan='ssh -A golan.raw.no'
alias hal='ssh -A ssh.raw.no'
alias creeper='ssh -A golan.raw.no'
alias wank='ssh -A ssh.raw.no'
alias pluto='ssh -A pluto.tu.no'
alias guffen='ssh -A guffen.tu.no'
alias roy='ssh -A roy.gamer.no'
alias grom='ssh -A gromguten.gamer.no'
alias knoke='ssh -A knoke.gamer.no'
alias vold='ssh -A sersjantvold.gamer.no'
alias hannibal='ssh -A hannibal.gamer.no'
alias admin='ssh -A admin.gamer.c.bitbit.net'
alias fiffus='ssh -A fiffus.gamer.no'
alias skafte='ssh -A skaftetryne.gamer.no'
alias svartepetter='ssh -A svartepetter.gamer.no'
alias css='cd ~/goodgameas/gamer/resources/sass'
alias js='cd ~/goodgameas/gamer/resources/js'
alias gamer='cd ~/goodgameas/gamer'
alias ggwp='cd ~/goodgameas/ggwp'
alias paradise='cd ~/goodgameas/paradise'
alias php5='/opt/php-5.6.36-custom/bin/php -c /opt/php-5.6.36-custom/lib/php.ini'
alias startebot='php5 bootstrap.php'
alias aether='vendor/bin/aether'
alias artisan='php artisan'
alias pest='./vendor/bin/pest'
alias cupdate='composer update && composer update'
alias situla='aws --endpoint=https://situla.bitbit.net'
alias dev='npm run dev -- --host ${PUBLICIP}'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion