1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-09-15 23:15:30 -04:00

random updates & cleanup

This commit is contained in:
2020-12-13 09:37:29 -05:00
parent 3a3d94240d
commit 8c42305bed
7 changed files with 23 additions and 20 deletions

View File

@@ -31,16 +31,14 @@ plugins=(
zsh-autosuggestions
)
# Perform compinit only once a day
# https://gist.github.com/ctechols/ca1035271ad134841284
# Perform compinit only once a day for speed
# https://gist.github.com/ctechols/ca1035271ad134841284#gistcomment-2308206
autoload -Uz compinit
if [[ -n ${ZDOTDIR}/.zcompdump(\#qN.mh+24) ]]; then
for dump in ~/.zcompdump(N.mh+24); do
echo "reloading compinit"
compinit
compdump
else
compinit -C
fi;
done
compinit -C
# Load everything!
source $ZSH/oh-my-zsh.sh

View File

@@ -52,8 +52,9 @@ update() {
echo -e "${YELLOW}Updating Homebrew formulae and casks...${NC}"
brew update
# git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask" fetch --unshallow
brew upgrade
brew cask upgrade
brew upgrade --cask
brew cleanup
echo -e "${YELLOW}Updating NPM/Yarn packages...${NC}"
@@ -67,16 +68,20 @@ update() {
gem upgrade --user-install
gem cleanup
# https://stackoverflow.com/a/3452888
echo -e "${YELLOW}Updating pip packages...${NC}"
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
echo -e "${YELLOW}Updating Composer packages...${NC}"
composer global update
echo -e "${YELLOW}Updating Oh-My-ZSH...${NC}"
upgrade_oh_my_zsh
omz update
# echo -e "${YELLOW}Updating MAS apps...${NC}"
echo -e "${YELLOW}Updating MAS apps...${NC}"
mas upgrade
# echo -e "${YELLOW}Updating macOS system...${NC}"
echo -e "${YELLOW}Updating macOS system...${NC}"
sudo softwareupdate -ia --include-config-data
}

View File

@@ -20,7 +20,6 @@ export PATH="/opt/metasploit-framework/bin:$PATH"
# export PATH="/usr/local/opt/curl/bin:$PATH"
export PATH="/usr/local/opt/curl-openssl/bin:$PATH"
# Rust/Cargo
export PATH="$HOME/.cargo/bin:$PATH"
@@ -29,7 +28,8 @@ export PATH="$HOME/.cargo/bin:$PATH"
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# yarn
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
export PATH="$HOME/.yarn/bin:$PATH"
export PATH="$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# pyenv
if command -v pyenv 1>/dev/null 2>&1; then
@@ -45,6 +45,3 @@ fi
# 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
# added by travis gem
[ -f /Users/jake/.travis/travis.sh ] && source /Users/jake/.travis/travis.sh