Skip to content

Commit

Permalink
Fix initial setup precedure
Browse files Browse the repository at this point in the history
After having to reinstall the system
  • Loading branch information
pkissling committed Oct 26, 2023
1 parent 8ac17ac commit be1fda6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 0 additions & 4 deletions brew/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,9 @@ cask "viscosity"
cask "visual-studio-code"
cask "vlc"
cask "whatsapp"
tap "hmarr/tap"
tap "homebrew/bundle"
tap "homebrew/cask-drivers"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "noahgorstein/tap"
tap "orf/brew"
vscode "DavidAnson.vscode-markdownlint"
vscode "DotJoshJohnson.xml"
vscode "GitHub.codespaces"
Expand Down
6 changes: 0 additions & 6 deletions brew/Brewfile.work
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
brew "ankitpokhrel/jira-cli/jira-cli"
brew "ankitpokhrel/jira-cli/jira-cli"
brew "ankitpokhrel/jira-cli/jira-cli"
brew "apktool"
brew "apktool"
brew "credstash"
brew "gobject-introspection"
brew "libpq"
brew "[email protected]"
cask "android-platform-tools"
cask "aws-vault"
cask "google-chrome"
cask "mattermost"
cask "postman"
cask "stats"
instance_eval(File.read(ENV['HOME'] + "/dotfiles/brew/Brewfile")) # include core Brefile
tap "ankitpokhrel/jira-cli"
tap "rbenv/tap"
7 changes: 6 additions & 1 deletion brew/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ set -ex
USAGE=$(cat "${HOME}"/dotfiles/.profile)

# install brew, if not installed
which brew || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
if ! command -v brew &>/dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Evaluating the brew shell environment
eval "$(/opt/homebrew/bin/brew shellenv)"
fi

# update brew
brew update
Expand Down
2 changes: 2 additions & 0 deletions rust/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -ex

# install and update rustup
rustup-init -y
# shellcheck source=/dev/null
source "${HOME}"/.cargo/env
rustup update

# install all creates defined in crates.txt
Expand Down
5 changes: 4 additions & 1 deletion tmux/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ mkdir -p "${HOME}"/.tmux/plugins
# checkout tpm git repo, if not exist
if [ ! -d "${HOME}"/.tmux/plugins/tpm ]; then
git clone https://github.com/tmux-plugins/tpm "${HOME}"/.tmux/plugins/tpm
tmux source ~/.tmux.conf
tmux source "${HOME}"/dotfiles/tmux/.tmux.conf
fi

# create symlink
ln -sfv "${HOME}"/dotfiles/tmux/.tmux.conf "${HOME}"

# install all tmux plugins defined in `.tmux.conf`
"${HOME}"/.tmux/plugins/tpm/bin/install_plugins

0 comments on commit be1fda6

Please sign in to comment.