-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbashrc_main
98 lines (81 loc) · 2.58 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# 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
# (currently overridden by oh-my-bash)
# 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"
# ------ START oh-my-bash
# Enable the subsequent settings only in interactive sessions
case $- in
*i*) ;;
*) return;;
esac
# Path to your oh-my-bash installation.
export OSH='/Users/patrickspieker/.oh-my-bash'
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-bash is loaded.
OSH_THEME="purity"
# To disable the uses of "sudo" by oh-my-bash, please set "false" to
# this variable. The default behavior for the empty value is "true".
OMB_USE_SUDO=true
completions=(
git
composer
ssh
)
plugins=(
git
bashmarks
)
source "$OSH"/oh-my-bash.sh
# ------ END oh-my-bash
# pnpm
export PNPM_HOME="/Users/patrickspieker/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
cd ~/code