forked from mvfsillva/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc_silicon
118 lines (94 loc) · 3.26 KB
/
.zshrc_silicon
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
#
# Zsh configuration file
# --------------------------- Paths ------------------------------------
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Homebrew path
export PATH="/opt/homebrew/bin:$PATH"
# curl path
export PATH="/opt/homebrew/opt/curl/bin:$PATH"
# Ruby path
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
export PATH="$(gem environment gemdir)/bin:$PATH"
# Support 256 colors path
export TERM="xterm-256color"
# --------------------------- Plugins ----------------------------------
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
asdf
colored-man-pages
extract
fast-syntax-highlighting
macos
zsh-autosuggestions
zsh-completions
)
# Homebrew Command Not Found
HB_CNF_HANDLER="/opt/homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh"
if [ -f "$HB_CNF_HANDLER" ]; then
source "$HB_CNF_HANDLER";
fi
# Homebrew Shell Completion
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
fi
source $ZSH/oh-my-zsh.sh
# --------------------------- Theme ------------------------------------
# Starship ZSH theme
# The minimal, blazing-fast, and infinitely customizable prompt for any shell!
# Check out https://starship.rs for more details
ZSH_THEME=""
eval "$(starship init zsh)"
# Starship path to load .config
export PATH="/opt/homebrew/opt/starship/bin:$PATH"
# --------------------------- Aliases ----------------------------------
# Update Homebrew and Cask formulaes
# Include -f to update apps that are marked as latest
alias update="brew update && brew upgrade && brew cu --all"
# Cleanup Homebrew and Cask cache
alias cleanup="brew cleanup"
# Update macOS using Command Line Software Update Tool
alias macupdate="sudo softwareupdate -ia"
# List npm packages installed globally
alias npmlist="npm list -g --depth=0"
# Undo the last commit
alias uncommit="git reset HEAD~1"
# Copy SSH
alias copyssh="pbcopy < ~/.ssh/id_ed25519.pub | echo '=> Public key copied to pasteboard.'"
# Open .zshrc in VSCode
alias zshcfg="code ~/.zshrc"
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias -- -="cd -"
# Shortcuts
alias dl="cd ~/Downloads"
alias dev="cd ~/Development"
alias g="git"
alias h="history"
alias sqlinit="mysql.server start"
alias sqlstop="mysql.server stop"
alias avdlist="emulator -list-avds"
alias pixel3="emulator -avd Pixel_3_API_28"
# Klue Shortcuts
alias k="cd ~/kluein"
alias kv2="cd ~/kluein/frontend-v2"
alias kv1="cd ~/kluein/klue"
alias kext="cd ~/kluein/klue-ext"
export PATH="/usr/local/opt/starship/bin:$PATH"
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH"
#### FIG ENV VARIABLES ####
# Please make sure this block is at the end of this file.
[ -s ~/.fig/fig.sh ] && source ~/.fig/fig.sh
#### END FIG ENV VARIABLES ####
# Starship path to load .config
export PATH="/usr/local/opt/starship/bin:$PATH"