-
Notifications
You must be signed in to change notification settings - Fork 2
/
.zshrc_intel
87 lines (67 loc) · 2.39 KB
/
.zshrc_intel
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
#!/bin/bash
#
# Zsh configuration file
# --------------------------- Paths ------------------------------------
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Homebrew path
export PATH="/usr/local/sbin:$PATH"
# curl path
export PATH="/usr/local/opt/curl/bin:$PATH"
# Ruby path
export PATH="/usr/local/opt/ruby/bin:$PATH"
export PATH="$(gem environment gemdir)/bin:$PATH"
# --------------------------- 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
F-Sy-H
macos
zsh-autosuggestions
zsh-completions
)
# Homebrew Command Not Found
HB_CNF_HANDLER="$(brew --prefix)/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="/usr/local/opt/starship/bin:$PATH"
# --------------------------- Aliases ----------------------------------
# Cleanup Homebrew and Cask cache
alias cleanup="brew cleanup"
# Copy SSH
alias copyssh="pbcopy < ~/.ssh/id_ed25519.pub | echo '=> Public key copied to pasteboard.'"
# Open .gitconfig in VSCode
alias gitcfg="code ~/.gitconfig"
# Update macOS using Command Line Software Update Tool
alias macupdate="sudo softwareupdate -ia"
# Update Homebrew and Cask formulaes
# Include -f to update apps that are marked as latest
alias update="brew update && brew upgrade && brew cu --all"
# List outdated npm packages installed globally
alias npmcheck="npm outdated -g --depth=0"
# List npm packages installed globally
alias npmlist="npm list -g --depth=0"
# Update npm packages installed globally
alias npmupdate="npm update -g"
# Undo the last commit
alias uncommit="git reset HEAD~1"
# Open .zshrc in VSCode
alias zshcfg="code ~/.zshrc"