-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
58 lines (44 loc) · 1.47 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
#-------------------------------------------------------------------------------
# bash completion
if [ -f /usr/local/etc/bash_completion ]; then
. /usr/local/etc/bash_completion
fi
#-------------------------------------------------------------------------------
# Local things
export PATH=$HOME/.local/bin:$PATH
#-------------------------------------------------------------------------------
# Tweak a few variables
export EDITOR="nvim"
export VISUAL="nvim"
export PAGER="less"
export CLICOLOR=1
export HISTIGNORE="&;ls;[bf]g:exit"
export HISTFILESIZE=2500
PS1='\[\033[0;34m\]\w/\[\033[0m\] '
#-------------------------------------------------------------------------------
# Aliases and trivial functions
alias cdb='. bookmark.sh'
# tmux
alias tmux='tmux -2'
alias tl='tmux list-sessions'
function ta() { tmux -2 attach -t $@ ;}
function tn() { tmux -2 new-session -s $@ ;}
alias serve='python3 -m http.server'
alias scan='nmap -sP 192.168.1.*'
alias weather='curl wttr.in/97330'
alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs.sh -nw'
mkcd () {
mkdir -p "$*"
cd "$*"
}
edit () {
open -a TextEdit "$*"
}
#-------------------------------------------------------------------------------
# Things that shouldn't be in a public repo
source $HOME/.bash_secrets
#-------------------------------------------------------------------------------
# Party time
fortune -s | cowsay
# OPAM configuration
. /Users/karl/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true