mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2025-09-15 23:15:30 -04:00
some updates for my new M1 mac ⚡
This commit is contained in:
@@ -80,8 +80,8 @@ update() {
|
||||
echo -e "${YELLOW}Updating Oh-My-ZSH...${NC}"
|
||||
omz update
|
||||
|
||||
echo -e "${YELLOW}Updating MAS apps...${NC}"
|
||||
mas upgrade
|
||||
# echo -e "${YELLOW}Updating MAS apps...${NC}"
|
||||
# mas upgrade
|
||||
|
||||
echo -e "${YELLOW}Updating macOS system...${NC}"
|
||||
sudo softwareupdate -ia --include-config-data
|
||||
@@ -104,7 +104,7 @@ alias ripmenu="sudo killall SystemUIServer NotificationCenter"
|
||||
# open current directory in Finder
|
||||
alias finder="open -a Finder ./"
|
||||
|
||||
# use VS Code insiders build
|
||||
# uncomment to use VS Code insiders build
|
||||
# alias code="code-insiders"
|
||||
alias vs="code ./"
|
||||
|
||||
@@ -114,11 +114,7 @@ alias ff="firefox"
|
||||
#
|
||||
# Git
|
||||
#
|
||||
# required: https://github.com/github/hub
|
||||
# `brew install hub`
|
||||
#
|
||||
alias git="hub"
|
||||
alias g="hub"
|
||||
alias g="git"
|
||||
alias gc="git commit -m" # + commit message
|
||||
alias gca="git add . && git commit -m" # + commit message
|
||||
alias gs="git status -sb"
|
||||
@@ -136,12 +132,10 @@ alias grm="git rebase -i origin/main"
|
||||
alias gsub="git submodule update --recursive --remote"
|
||||
alias gundo="git reset --soft HEAD~1"
|
||||
alias greset="git reset"
|
||||
alias gsync="hub sync"
|
||||
alias github="gh repo view --web"
|
||||
alias gist="gh gist create --web"
|
||||
alias ghnew="gh repo create"
|
||||
alias ghfork="gh repo fork"
|
||||
alias ghci="hub ci-status --verbose"
|
||||
glall() {
|
||||
# pull all remote branches
|
||||
# https://stackoverflow.com/a/10312587
|
||||
|
39
zsh/path.zsh
39
zsh/path.zsh
@@ -1,36 +1,53 @@
|
||||
# Default paths
|
||||
export PATH="$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
||||
|
||||
# homebrew
|
||||
export HOMEBREW_PREFIX="/opt/homebrew";
|
||||
export HOMEBREW_CELLAR="/opt/homebrew/Cellar";
|
||||
export HOMEBREW_REPOSITORY="/opt/homebrew";
|
||||
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}";
|
||||
export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:";
|
||||
export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}";
|
||||
|
||||
# Go
|
||||
export GOPATH="$HOME/golang"
|
||||
export GOROOT="/usr/local/opt/go/libexec"
|
||||
#export GOROOT="/usr/local/opt/go/libexec"
|
||||
export PATH="$GOPATH/bin:$PATH"
|
||||
export PATH="$GOROOT/bin:$PATH"
|
||||
#export PATH="$GOROOT/bin:$PATH"
|
||||
|
||||
# Ruby
|
||||
export RUBY_HOME=/usr/local/opt/ruby@2.7/bin
|
||||
export GEM_PATH=/usr/local/lib/ruby/gems/2.7.0
|
||||
export RUBY_HOME="/opt/homebrew/opt/ruby/bin"
|
||||
export GEM_PATH="$HOME/.gem/ruby/3.0.0"
|
||||
export PATH="$RUBY_HOME:$PATH"
|
||||
export PATH="$GEM_PATH/bin:$PATH"
|
||||
|
||||
# openjdk
|
||||
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
|
||||
|
||||
# Metasploit
|
||||
export PATH="/opt/metasploit-framework/bin:$PATH"
|
||||
|
||||
# curl
|
||||
# export PATH="/usr/local/opt/curl/bin:$PATH"
|
||||
export PATH="/usr/local/opt/curl-openssl/bin:$PATH"
|
||||
export PATH="/opt/homebrew/opt/curl/bin:$PATH"
|
||||
|
||||
# Rust/Cargo
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
|
||||
# nvm
|
||||
# export NVM_DIR="$HOME/.nvm"
|
||||
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
||||
# yarn
|
||||
export PATH="$HOME/.yarn/bin:$PATH"
|
||||
export PATH="$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
|
||||
# misc.
|
||||
export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"
|
||||
export PATH="/opt/homebrew/opt/whois/bin:$PATH"
|
||||
export PATH="/opt/homebrew/opt/jpeg-turbo/bin:$PATH"
|
||||
#export LDFLAGS="-L/opt/homebrew/opt/jpeg-turbo/lib"
|
||||
#export CPPFLAGS="-I/opt/homebrew/opt/jpeg-turbo/include"
|
||||
|
||||
# nvm
|
||||
# export NVM_DIR="$HOME/.nvm"
|
||||
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
||||
# pyenv
|
||||
if command -v pyenv 1>/dev/null 2>&1; then
|
||||
eval "$(pyenv init -)"
|
||||
@@ -44,4 +61,4 @@ fi
|
||||
# ----- Third-party additions below: -----
|
||||
|
||||
# Google Cloud SDK
|
||||
[ -f /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc ] && source /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc
|
||||
[ -f /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc ] && source /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc
|
||||
|
Reference in New Issue
Block a user