-
Notifications
You must be signed in to change notification settings - Fork 77
/
.bashrc.local
51 lines (39 loc) · 1.11 KB
/
.bashrc.local
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
stty -ixon
shopt -s globstar
parse_git_branch() { b=$(git branch --show-current 2> /dev/null); echo ${b:+" ($b)"}; }
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(parse_git_branch)\[\033[00m\]\$ '
[ -f ~/.bash_aliases ] && . ~/.bash_aliases
[ -f ~/.bash_secrets ] && . ~/.bash_secrets
alias config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME"
export VISUAL=vim
export EDITOR="$VISUAL"
export PERL_MM_USE_DEFAULT=1
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
tarz () { tar -I pigz -cf $1.tgz $1; }
commit () { git commit -am "${1}"; git push; }
fixes () { git commit -am "fixes #${1}"; git push; }
git_clone_all () {
cd ~/git
parallel -a repos 'git clone [email protected]:fastai/{}.git'
cd -
}
git_pull_all () {
pushd ~/git
parallel -a repos 'echo " # {}" && cd ~/git/{} && git pull'
popd
}
git_status_rel () {
pushd ~/git
parallel -a releases 'echo " # {}" && cd ~/git/{} && git status'
popd
}
vibash () {
vim ~/.bashrc
. ~/.bashrc
}
vibashl () {
vim ~/.bashrc.local
. ~/.bashrc
}
eval "$(gh completion -s bash)"