-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
81 lines (58 loc) · 1.5 KB
/
.profile
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
# all shell instances
#-----
# path
#-----
# ruby version manager
export PATH="$PATH:$HOME/.rvm/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # load RVM as function
# miniconda
export PATH="~/miniconda3/bin:$PATH"
# local apps
export PATH="$PATH:$HOME/bin"
#-----------------------
# app aliases & defaults
#-----------------------
editor='vi'
# use nvim
alias vi='nvim'
alias vim='nvim'
# tree coloring
alias tree="tree -C"
#------------------
# platfom targeting
#------------------
platform='unknown'
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
eval 'dircolors ~/.profiles/dircolors.256dark' > /dev/null
export TERM=xterm-256color
export LS_COLORS
alias ls="ls -Fha --color"
elif [[ "$unamestr" == 'Darwin' ]]; then
export CLICOLOR=1
export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD
alias ls='ls -Fha'
fi
#----
# ssh
#----
export SSH_KEY_PATH='~/.ssh/id_rsa'
#-----------------
# remote locations
#-----------------
# hxrts alias
alias terra='mosh [email protected]'
alias juno='ssh [email protected]'
alias io='mosh [email protected]'
# lab aliases
alias hal='ssh -i ~/.ssh/id_rsa [email protected]'
alias saba='ssh -i ~/.ssh/saba.private [email protected]'
alias ika='ssh -i ~/.ssh/saba.private [email protected]'
alias supertemporal='ssh -i ~/.ssh/supertemporal_id_rsa [email protected]'
#-----
# tmux
#-----
if [[ $(ps -e | grep -v "grep" | grep -q tmux) && "$TERM" != "dumb" ]]; then
echo "";
tmux ls;
fi