-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
97 lines (84 loc) · 2.26 KB
/
.bashrc
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
# if not running interactively, don't do anything
[[ $- != *i* ]] && return
# set to vim editing mode
set -o vi
# keybinds
bind -x '"\C-l":clear'
# ---- Environment ----
# text editing
export EDITOR=nvim
export VISUAL=nvim
export EDITOR_PREFIX=nvim
export HRULEWIDTH=80
# shell
export SHELL=/opt/homebrew/bin/bash
export SHELL_SESSION_HISTORY=0
export LANG=en_US.UTF-8
# user
export USER="${USER:-$(whoami)}"
# directories
export GITUSER="charlieroth"
export REPOS="$HOME/github.com"
export GHREPOS="$REPOS/$GITUSER"
export LAB="$GHREPOS/lab"
export DOTFILES="$HOME/dotfiles"
export DESKTOP="$HOME/Desktop"
export DOCUMENTS="$HOME/Documents"
export DOWNLOADS="$HOME/Downloads"
export SCRIPTS="$DOTFILES/scripts"
export SECOND_BRAIN="$DOCUMENTS/Digital\ Garden/"
# go
# export GOPRIVATE="$GHREPOS/$GITUSER/*"
export GOBIN="$HOME/.local/bin"
export GOPROXY=direct
export CGO_ENABLED=0
# mojo
export MODULAR_HOME="$HOME/.modular"
export MOJO_PATH="$MODULAR_HOME/pkg/packages.modular.com_mojo"
# node
export NVM_DIR="$HOME/.nvm"
# compilation flags
export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include"
# Erlang
export ERL_AFLAGS="-kernel shell_history enabled"
# other
export BASH_SILENCE_DEPRECATION_WARNING=1
# ---- PATH ----
export PATH="$MOJO_PATH/bin:$PATH"
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
export PATH="/Users/charlie/.local/bin:$PATH"
export PATH="$REPOS/zigtools/zls/zig-out/bin:$PATH"
# ---- Aliases ----
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias ls='eza -lh --group-directories-first --icons'
alias lsa='ls -a'
alias lt='eza --tree --level=2 --long --icons --git'
alias c='clear'
alias ff="fzf --preview 'batcat --style=numbers --color=always {}'"
alias diff='diff --color'
alias v=nvim
alias t='tmux'
alias tks='tmux kill-server'
alias ga="git add"
alias gcm="git commit -m"
alias gc="git commit"
alias gl="git lg"
alias gp="git pull"
alias gs="git status"
alias txn="tmuxinator"
alias lg='lazygit'
alias ld='lazydocker'
alias dot="cd $DOTFILES"
alias scripts="cd $SCRIPTS"
alias repos="cd $GHREPOS"
alias lab="cd $LAB"
alias sb="cd $SECOND_BRAIN"
# ---- Work Aliases ----
alias sy="source .yoshi/bin/activate"
# ---- Kubernetes ----
alias k='kubectl'
alias kgp='kubectl get pods'
alias kn='kubens'
alias kcr='kubectl config use-context rancher-desktop'