This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
263 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/sh | ||
if which brew >/dev/null 2>&1; then | ||
brew install getantibody/tap/antibody || brew upgrade antibody | ||
brew install getantibody/tap/antibody || brew upgrade antibody | ||
else | ||
curl -sL https://git.io/antibody | sh -s | ||
curl -sL https://git.io/antibody | sh -s | ||
fi | ||
antibody bundle < "$DOTFILES/antibody/bundles.txt" > ~/.zsh_plugins.sh | ||
antibody bundle <"$DOTFILES/antibody/bundles.txt" >~/.zsh_plugins.sh | ||
antibody update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# setups the auto-update | ||
( | ||
crontab -l | grep -v "dot_update" | ||
echo "0 */2 * * * $HOME/.dotfiles/bin/dot_update > ${TMPDIRR:-/tmp}/dot_update.log 2>&1" | ||
crontab -l | grep -v "dot_update" | ||
echo "0 */2 * * * $HOME/.dotfiles/bin/dot_update > ${TMPDIRR:-/tmp}/dot_update.log 2>&1" | ||
) | sort - | uniq - | crontab - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
# shellcheck disable=SC1090 | ||
test -e /usr/local/bin/aws_zsh_completer.sh && . "$_" | ||
test -e /usr/local/bin/aws_zsh_completer.sh && . "$_" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
# Kills viscosity and openvpn, as they constantly freeze on OSX for no reason | ||
for p in openvpn viscosity; do | ||
sudo pkill -9 -i -f "$p" | ||
sudo pkill -9 -i -f "$p" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/sh | ||
# open files from xargs in tabs and without messing up yout tty. | ||
# example usage: git grep -c bash | cut -f1 -d':' | xargs vip | ||
exec vim < /dev/tty -p "$@" | ||
|
||
exec vim -p "$@" </dev/tty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/bin/sh | ||
mkdir -p "$HOME/.docker/completions" | ||
|
||
if which docker-compose > /dev/null 2>&1; then | ||
curl -sL https://raw.githubusercontent.com/docker/compose/master/contrib/completion/zsh/_docker-compose \ | ||
-o "$HOME/.docker/completions/_docker-compose" | ||
if which docker-compose >/dev/null 2>&1; then | ||
curl -sL https://raw.githubusercontent.com/docker/compose/master/contrib/completion/zsh/_docker-compose \ | ||
-o "$HOME/.docker/completions/_docker-compose" | ||
fi | ||
if which docker-machine > /dev/null 2>&1; then | ||
curl -sL https://raw.githubusercontent.com/docker/machine/master/contrib/completion/zsh/_docker-machine \ | ||
-o "$HOME/.docker/completions/_docker-machine" | ||
if which docker-machine >/dev/null 2>&1; then | ||
curl -sL https://raw.githubusercontent.com/docker/machine/master/contrib/completion/zsh/_docker-machine \ | ||
-o "$HOME/.docker/completions/_docker-machine" | ||
fi | ||
if which docker > /dev/null 2>&1; then | ||
curl -sL https://raw.githubusercontent.com/docker/docker/master/contrib/completion/zsh/_docker \ | ||
-o "$HOME/.docker/completions/_docker" | ||
if which docker >/dev/null 2>&1; then | ||
curl -sL https://raw.githubusercontent.com/docker/docker/master/contrib/completion/zsh/_docker \ | ||
-o "$HOME/.docker/completions/_docker" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#!/bin/sh | ||
if which brew >/dev/null 2>&1; then | ||
brew() { | ||
case "$1" in | ||
cleanup) | ||
(cd "$(brew --repo)" && git prune && git gc) | ||
command brew cleanup --force | ||
command brew cask cleanup --force | ||
command brew prune | ||
rm -rf "$(brew --cache)" | ||
;; | ||
bump) | ||
command brew update | ||
command brew upgrade | ||
brew cleanup | ||
;; | ||
*) | ||
command brew "$@" | ||
;; | ||
esac | ||
} | ||
brew() { | ||
case "$1" in | ||
cleanup) | ||
(cd "$(brew --repo)" && git prune && git gc) | ||
command brew cleanup --force | ||
command brew cask cleanup --force | ||
command brew prune | ||
rm -rf "$(brew --cache)" | ||
;; | ||
bump) | ||
command brew update | ||
command brew upgrade | ||
brew cleanup | ||
;; | ||
*) | ||
command brew "$@" | ||
;; | ||
esac | ||
} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
[ "$(uname -s)" != "Darwin" ] && exit 0 | ||
sed "s;/Users/carlos;$HOME;g" \ | ||
"$DOTFILES"/iterm/com.googlecode.iterm2.plist.example > "$DOTFILES"/iterm/com.googlecode.iterm2.plist | ||
"$DOTFILES"/iterm/com.googlecode.iterm2.plist.example >"$DOTFILES"/iterm/com.googlecode.iterm2.plist | ||
defaults write com.googlecode.iterm2 "PrefsCustomFolder" -string "$DOTFILES/iterm" | ||
defaults write com.googlecode.iterm2 "LoadPrefsFromCustomFolder" -bool true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.