Skip to content

Commit

Permalink
updating brew dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
the-gigi committed Mar 19, 2020
1 parent 3b84962 commit efb9afb
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 6 deletions.
2 changes: 0 additions & 2 deletions bootstrap/brew-cask.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ calibre
docker
dropbox
firefox
google-cloud-sdk
iterm2
macdown
macdown
paintbrush
pycharm-ce
slack
Expand Down
15 changes: 15 additions & 0 deletions bootstrap/brew-tap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
gettext
go
httpie
jq
k3d
k9s
kubectl
kubernetes-helm
minikube
node
octant
python3
rust
tmux
tree
5 changes: 5 additions & 0 deletions bootstrap/brew.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ httpie
jq
k3d
k9s
kind
kubectl
kubernetes-helm
kubebuilder
kustomize
minikube
node
octant
python3
pyenv
rust
tmux
tree
pipenv
5 changes: 4 additions & 1 deletion components/general.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ export EDITOR=vim
# Don't save commands that have a space prefix in the history
export HISTCONTROL=ignorespace

alias shrug='echo "\_(ツ)_/¯"'
# Enable the repeat command
enable -r repeat

alias shrug='echo "¯\_(ツ)_/¯"'

# Directory listing in a nice format
alias lla='ls -lAGh'
Expand Down
2 changes: 1 addition & 1 deletion components/prompt/paths.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$HOME/git:\(G)
$HOME/git:(🐙)
$HOME:~
10 changes: 8 additions & 2 deletions components/prompt/prompt.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#! /usr/bin/env zsh

script_name=${(%):-%N}
prompt_dir="$(cd "$(dirname "$script_name")" >/dev/null 2>&1 && pwd)"
PROMPT_DIR="$(cd "$(dirname "$script_name")" >/dev/null 2>&1 && pwd)"

alias escape_path='sed -e "s/\//\\\\\//g"'

function get_paths()
{
envsubst < <(cat ~/.dotfiles.local/paths.txt "${PROMPT_DIR}/paths.txt")
}


function calc_current_dir()
{
cwd=$PWD
Expand All @@ -17,7 +23,7 @@ function calc_current_dir()
cwd=$(echo "$PWD" | sed -e "s/$key/$(echo $value)/")
break
fi
done < <(envsubst < "${prompt_dir}/paths.txt")
done < <(get_paths)
echo "${cwd}"
}

Expand Down
11 changes: 11 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ BOOTSTRAP_DIR=${DOT_DIR}/bootstrap

# Local dotfiles dir for additions and customizations
mkdir -p "$LOCAL_DOT_DIR"
${LOCAL_DOT_DIR}/paths.txt
${LOCAL_DOT_DIR}/brew.txt
${LOCAL_DOT_DIR}/brew-link.txt
${LOCAL_DOT_DIR}/brew-cask.txt


# Symlink all rc files to the home dir (run commands. See https://en.wikipedia.org/wiki/Run_commands)
for file in ${DOT_DIR}/rcfiles.d; do
Expand All @@ -30,6 +35,12 @@ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/
brew tap homebrew/cask-cask
brew tap homebrew/cask-versions


## Add taps with brew
for item in $(cat ${BOOTSTRAP_DIR}/brew-tap.txt); do
brew tap $item
done

## Install stuff with brew
for item in $(cat ${BOOTSTRAP_DIR}/brew.txt); do
brew install $item
Expand Down

0 comments on commit efb9afb

Please sign in to comment.