-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
98 lines (73 loc) · 2.64 KB
/
.zshrc
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
# mmmm, secrets...
[ -f ~/.secrets ] && source ~/.secrets
# ZSH
# Path to oh-my-zsh installation
export ZSH=$HOME/.oh-my-zsh
DEFAULT_USER='jack'
# ZSH Theme
# https://github.com/denysdovhan/spaceship-prompt#oh-my-zsh
ZSH_THEME="spaceship"
# Plugins - can be found in ~/.oh-my-zsh/plugins/*
# git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
plugins=(git zsh-syntax-highlighting)
# Plugin configs
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets root)
source $ZSH/oh-my-zsh.sh
# History
# Increase history file limit
# https://github.com/bamos/zsh-history-analysis/blob/master/README.md#increasing-the-history-file-size
# https://unix.stackexchange.com/a/273863
export HISTSIZE=1000000000
export SAVEHIST=$HISTSIZE
setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format.
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
# Android SDK
export ANDROID_HOME=/home/jack/Android/Sdk/
export PATH=${PATH}:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/build-tools
# manually download gradle and extract here
export PATH=${PATH}:/opt/gradle/bin
export JAVA_HOME=/usr/lib/jvm/java-18-openjdk-amd64/
# NodeJS
# Allow locally installed npm packages to be in path
export PATH=${PATH}:./node_modules/.bin
# NPM global
export NPM_PACKAGES="${HOME}/.npm-global"
export PATH="$PATH:$NPM_PACKAGES/bin"
unset MANPATH
export MANPATH="$NPM_PACKAGES/SHARE/MAN:$(manpath)"
# ESP32
export PATH="/home/jack/esp/esp-idf/components/:${PATH}"
# ESP8266 Programming
export PATH=$PATH:$HOME/esp8266/esp-open-sdk/xtensa-lx106-elf/bin
export ESP_OPEN_RTOS_PATH=$HOME/esp8266/esp-open-rtos
# Applications
# AWS CLI
export AWS_PAGER=""
# Mongodb
export PATH=~/.mongodb/versions/mongodb-current/bin:$PATH
# For Robo3T
export PATH=/usr/local/robo3t/bin:$PATH
# PIP and other general binaries
export PATH=/home/jack/.local/bin:$PATH
# Rust packages
source ~/.cargo/env
# GO
export PATH=/home/jack/go/bin:$PATH
# Customising htop, wooo
export HTOPRC=~/.htoprc
# FZF
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Ruby ruby rubaaaaaaaayyyy
export GEM_HOME=$HOME/.gems
export GEM_PATH=$HOME/.gems
export PATH=$HOME/.gems/bin:$PATH
# Superior
export EDITOR=/home/jack/.local/bin/nvim
export SUDO_EDITOR=/home/jack/.local/bin/nvim
# For git review commands
# see .gitconfig
export REVIEW_BASE=master
# Custom commands
source ~/.commands
# Source own aliases LAST to override zsh's aliases
source ~/.aliases