-
Notifications
You must be signed in to change notification settings - Fork 1
/
bashrc_main
64 lines (54 loc) · 1.89 KB
/
bashrc_main
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
# Note that I only alias vim to nvim here
# vi is used for rebasing, and I've seen errors on a rebase
# when the rebase tries to open some vi-based text editor
alias vim="nvim"
# ----- GIT COMMANDS -----
alias gs="git status -uno"
function gacp() {
git add -u
git commit -m "$1"
git push origin HEAD
}
alias glp="git log --pretty=oneline"
# ----- END GIT COMMANDS -----
# ----- PATH Appendings -----
# Prepending the Ruby bin path
export PATH="/usr/local/opt/ruby/bin:$PATH"
# Prepending the Ruby gems path
export PATH="/Users/patrickspieker/.gem/bin:$PATH"
# Prepending making gem command look at the proper version of Ruby
export PATH=`gem environment gemdir`/bin:$PATH
# Appending Java 18
export JAVA_HOME="$HOME/jdk-18.0.1.1.jdk/Contents/Home"
export PATH="$JAVA_HOME/bin:$PATH"
# Appending SMLNJ (not installed via homebrew)
export PATH="$PATH:/usr/local/smlnj/bin"
# Appending homebrew to the path
export PATH=/opt/homebrew/bin:$PATH
# Not sure why this is here?
export PATH="/usr/local/sbin:$PATH"
# Prepending VSCode to the path so we can do things like "code ."
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# Appending go to the path
export GOPATH="$HOME/go"
PATH="$GOPATH/bin:$PATH"
# ----- END PATH Appendings -----
# ----- MISC -----
# Creates a file so that iTerm doesn't show a login message
touch ~/.hushlogin
# Prompt Definition
PS1='> '
# Setting the default FZF command to be backed by ripgrep for speed
# - note that this is what powers fzf.vim's search
export FZF_DEFAULT_COMMAND="rg --files --hidden --smart-case --glob '!.git/'"
# Turning off the Bash bell - used to happen on autocomplete
bind 'set bell-style none'
# Some Rust thing? Not actually sure what this does
. "$HOME/.cargo/env"
# pnpm
export PNPM_HOME="/Users/patrickspieker/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end