-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
73 lines (54 loc) · 2.13 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
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
# ------- instructions for migrating setup ------- #
# use keyboard system prefs to rebind caps-lock to ctrl
# (optional) install solarized for terminal:
# https://github.com/tomislav/osx-terminal.app-colors-solarized
# migrate over dotfiles
# https://www.atlassian.com/git/tutorials/dotfiles
# install vundle
# git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# install tpm:
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Press prefix + I (capital i, as in Install) to fetch the plugin.
# add to .bash_profile:
# [[ -s ~/.bashrc ]] && source ~/.bashrc
[[ -s ~/.bashrc_default ]] && source ~/.bashrc_default
# export PS1="\[\033[38;5;6m\]\W\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;2m\]\u\[$(tput sgr0)\]\\$ \[$(tput sgr0)\]"
# export PS1="\u@\h \[$(tput sgr0)\]\[\033[38;5;106m\]\W\[$(tput sgr0)\]\\$ \[$(tput sgr0)\]"
# export PS1="\[\033[38;5;196m\] __
# \ \_____
# \[\033[38;5;214m\]###\[\033[38;5;196m\][==_____>
# /_/ \[$(tput sgr0)\]"
shopt -s histappend
HISTFILESIZE=1000000
HISTSIZE=1000000
HISTCONTROL=ignoreboth
HISTIGNORE='ls:bg:fg:history'
HISTTIMEFORMAT='%F %T '
shopt -s cmdhist
PROMPT_COMMAND='history -a'
alias vimrc="vim ~/.vimrc"
alias bashrc="vim ~/.bashrc"
alias tmuxconf="vim ~/.tmux.conf"
alias myth="ssh -K myth.stanford.edu"
alias mythy="ssh -K -Y myth.stanford.edu"
alias rice="ssh rice.stanford.edu"
alias kinit2="kinit mjpauly@stanford.edu"
alias ppath='echo $PATH | tr ":" "\n"'
alias mfl="ssh mayfieldlinux.local"
alias py="ipython"
alias nb="jupyter notebook"
#alias md="perl ~/Markdown.pl --html4tags"
alias md="echo 'use commonmark (pip install commonmark), cmark [in] -o [out]'"
alias grc="/Applications/GNURadio.app/Contents/MacOS/usr/bin/run-grc"
alias sva="source /home/mjpauly/repos/wakey_wakey/venv/bin/activate"
# from https://vi.stackexchange.com/a/17963
vd() {
local tempfile="$HOME/tmp/vimtmpfiles/chdir/chdir"
vim .
test -f "$tempfile" &&
if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
cd -- "$(cat "$tempfile")"
rm $tempfile
fi
}