diff options
author | gxlin <[email protected]> | 2021-08-20 23:18:08 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-08-20 23:18:08 +0800 |
commit | 455bc26edb8bf1e2512cd4739eca82a6b528e9c5 (patch) | |
tree | dbb26f50ef468eb72495c2bb1ab51a638fa54c05 | |
parent | 558d3547645636c67bbb2d18b0dfff35f9d437c6 (diff) | |
download | dotfiles-455bc26edb8bf1e2512cd4739eca82a6b528e9c5.tar.gz dotfiles-455bc26edb8bf1e2512cd4739eca82a6b528e9c5.tar.bz2 dotfiles-455bc26edb8bf1e2512cd4739eca82a6b528e9c5.zip |
Update config
-rw-r--r-- | .macos | 2 | ||||
-rwxr-xr-x | .path | 9 | ||||
-rw-r--r-- | .zshrc | 9 | ||||
-rwxr-xr-x | bootstrap.sh | 2 |
4 files changed, 13 insertions, 9 deletions
@@ -2,3 +2,5 @@ export BROWSER='open -a safari' [ -d /Applications/Firefox.app ] && export BROWSER='open -a firefox' + +alias bug='brew upgrade --greedy' @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +[ -d $HOME/bin ] && export PATH=$PATH:$HOME/bin + +if command -v go &> /dev/null +then + export GOPATH=$(go env GOPATH) + export PATH=$PATH:$(go env GOPATH)/bin +fi @@ -18,7 +18,7 @@ HISTSIZE=1000 SAVEHIST=1000 HISTFILE=~/.zsh_history -[ -d ~/bin ] && export PATH="$HOME/bin:$PATH" +source $HOME/.path [[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh @@ -28,16 +28,9 @@ Darwin) # commands for macOS [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh - # ruby - [ -d /usr/local/opt/ruby/bin ] && export PATH="/usr/local/opt/ruby/bin:$PATH" - - # java - [ -d /usr/local/opt/openjdk/bin ] && export PATH="/usr/local/opt/openjdk/bin:$PATH" - # Alias alias ls='ls -G' alias ll='ls -lhG' - alias bug='brew upgrade --greedy' source ~/.macos ;; diff --git a/bootstrap.sh b/bootstrap.sh index 3d44bee..de9726d 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -19,7 +19,7 @@ remove_and_link () { link_all () { remove_and_link .ctags.d .mutt bin .aliases .macos \ .mbsyncrc .msmtprc .tmux.conf .urlview .zshrc \ - .vimrc .vim + .vimrc .vim .path } main () { |