Skip to content

Commit

Permalink
Merge branch 'master' of github.com:paulirish/dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jun 21, 2017
2 parents d8f4ab9 + 8c3d89c commit 6fbe3da
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[alias]
c = commit -am
up = pull
p = push
fpush = push --force
s = status
sclone = clone --depth=1
amend = commit --amend --all
Expand All @@ -14,7 +13,6 @@
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"

reup = rebase-update # depot_tools specific
fpush = push --force

[core]
excludesfile = ~/.gitignore
Expand Down
25 changes: 20 additions & 5 deletions fish/path.fish
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,30 @@ end
# set PA $PA /Users/paulirish/.rvm/gems/ruby-2.2.1/bin
# end


set -l paths "
# yarn binary
set PA $PA "$HOME/.yarn/bin"
$HOME/.yarn/bin
# yarn global modules (hack for me)
set PA $PA "$HOME/.homebrew/Cellar/node/7.10.0/bin"
set PA $PA "$HOME/.homebrew/Cellar/node/7.7.1_1/bin"
$HOME/.homebrew/Cellar/node/7.10.0/bin
$HOME/.homebrew/Cellar/node/7.7.1_1/bin
$HOME/.homebrew/Cellar/node/7.7.4/bin
$HOME/.homebrew/Cellar/node/8.0.0_1/bin
"

for entry in (string split \n $paths)
# resolve the {$HOME} substitutions
set -l resolved_path (eval echo $entry)
if test -d "$resolved_path";
set PA $PA "$resolved_path"
end
end

# Google Cloud SDK.
[ -f "$HOME/google-cloud-sdk/path.fish.inc" ]; . "$HOME/google-cloud-sdk/path.fish.inc"

# Google Cloud SDK.
if test -f "$HOME/google-cloud-sdk/path.fish.inc"
source "$HOME/google-cloud-sdk/path.fish.inc"
end

set --export PATH $PA

0 comments on commit 6fbe3da

Please sign in to comment.