-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
31 lines (26 loc) · 847 Bytes
/
.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
# VIM BINDING
set -o vi
bind '"jk":vi-movement-mode'
alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
# TMUX
# Attaches tmux to the last session; creates a new session if none exists.
alias t='tmux attach || tmux new-session'
# Attaches tmux to a session (example: ta portal)
alias ta='tmux attach -t'
# Creates a new session
alias tn='tmux new-session'
# Lists all ongoing sessions
alias tl='tmux list-sessions'
# SOURCING CONFIG FILES
alias source-tmux='tmux source-file ~/.tmux.conf'
alias source-bash='source ~/.bashrc'
# RUBY SETTINGS
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
# TERRAFORM SETTINGS
complete -C /usr/bin/terraform terraform
# R SETTINGS
function knit { Rscript -e "rmarkdown::render('$1')"; }
export -f knit
complete -f -X '!*.Rmd' knit