-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc.bash
61 lines (46 loc) · 2.1 KB
/
bashrc.bash
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
### Contains the environment configuration that every shell or other environment
### will want. See bash_profile.bash for the bash-specific commands
# Log my commands for use later
export PROMPT_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> ~/.logs/bash-history-$(date "+%Y-%m-%d").log; fi'
# And allow searching
alias loggrep="$HOME/Documents/dotfiles/loggrep.bash"
# basic aliases
alias flushdnscache='sudo killall -HUP mDNSResponder && echo "DNS caches flushed"'
# Homebrew
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
export HOMEBREW_NO_AUTO_UPDATE="1"
export HOMEBREW_PREFIX="/opt/homebrew";
export HOMEBREW_CELLAR="/opt/homebrew/Cellar";
export HOMEBREW_REPOSITORY="/opt/homebrew";
export HOMEBREW_SHELLENV_PREFIX="/opt/homebrew";
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}";
export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:";
export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}";
# Go Language
export GOPATH=$HOME/.go
export GOROOT=/usr/local/Cellar/go/1.9/libexec
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
# Python
alias py39='. ~/.venv/py39/bin/activate'
# Mongodb
export PATH="/usr/local/opt/mongodb-community@4.2/bin:$PATH"
# PSQL
export PATH="/usr/local/opt/postgresql@14/bin:$PATH"
# Homebrew Coreutils
alias timeout=gtimeout
# Perl
PATH="/Users/jpaddison/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/Users/jpaddison/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/Users/jpaddison/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/Users/jpaddison/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/jpaddison/perl5"; export PERL_MM_OPT;
# heroku autocomplete setup
HEROKU_AC_BASH_SETUP_PATH=/Users/jpaddison/Library/Caches/heroku/autocomplete/bash_setup && test -f $HEROKU_AC_BASH_SETUP_PATH && source $HEROKU_AC_BASH_SETUP_PATH;
## git
alias gitstashstaged="$HOME/Documents/dotfiles/git_stash_staged.bash"
# Rust
export PATH="$HOME/.cargo/bin:$PATH"
# Set editor
export EDITOR='vim'
# Tmux
alias mux="tmuxinator"