jondeans / dotfiles

New machine configuration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

New machine configuration.

X-Code CLI Tools

xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Run the commands given by Homebrew that look like the following:

# (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/{USERNAME}/.zprofile
# eval "$(/opt/homebrew/bin/brew shellenv)"

Install useful packages

brew install \
    git \
    gh \
    python \
    libomp \
    cmake \
    wget \
    awscli \
    eza \
    bat \
    starship \
    zsh-autocomplete \
    zsh-autosuggestions \
    zsh-completions \
    zsh-history-substring-search \
    zsh-syntax-highlighting

Setup completions, suggestions, and syntax, etc.

Add zsh-autosuggestions (at or near the bottom of .zshrc -- but it's at the top right now)

echo 'source $HOMEBREW_PREFIX/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> .zshrc

Add zsh-autocomplete (at or near the top of .zshrc -- but it's at the top right now)

echo 'source $HOMEBREW_PREFIX/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh' >> .zshrc

Add zsh-completions

echo 'if type brew &>/dev/null' >> .zshrc
echo 'then' >> .zshrc
echo '  FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"' >> .zshrc
echo '' >> .zshrc
echo '  autoload -Uz compinit' >> .zshrc
echo '  compinit' >> .zshrc
echo 'fi' >> .zshrc

Add zsh-history-substring-search (to the end of .zshrc -- but it's near the top right now)

echo 'source $HOMEBREW_PREFIX/share/zsh-history-substring-search/zsh-history-substring-search.zsh' >> .zshrc

Add zsh-syntax-highlighting (to the end of .zshrc -- but it's near the top right now)

echo 'source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> .zshrc

Use homebrew py311 for python alias

echo '' >> .zshrc
echo '# Use homebrew's py311 for `python`' >> .zshrc
echo 'export PATH="$PATH:/opt/homebrew/opt/python@3.11/libexec/bin"' >> .zshrc
echo '' >> .zshrc
echo '# eza Aliases' >> .zshrc
echo 'alias ls="eza --icons --classify --group-directories-first --oneline"' >> .zshrc
echo 'alias ll="ls --long --group --header --git"' >> .zshrc
echo 'alias lla="ll --all"' >> .zshrc
echo 'alias tree="ls --tree"' >> .zshrc
echo 'alias treel="ll --tree"' >> .zshrc
echo 'alias treela="lla --tree"' >> .zshrc

Miniconda

mkdir -p ~/miniconda3
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3/
rm -rf ~/miniconda3/miniconda.sh

~/miniconda3/bin/conda init zsh

We just installed it with homebrew, but check their guides to install in other OS.

cp the starship.toml to the config directory

cp starship.toml ~/.config/starship.toml

Add to the end of .zshrc

echo '' >> .zshrc
echo '# Always at the bottom' >> .zshrc
echo 'eval "$(starship init zsh)"' >> .zshrc

Fonts

Download and install favorite fonts:

Terminal

Download and install iTerm2.

  • Preferences > General > Window > Unselect "Native full screen windows"
  • Preferences > Appearance > General > Theme > "Minimal"
  • Preferences > Appearance > Windows > Select "Hide scrollbars"
  • Preferences > Appearance > Tabs > Unselect "Show tab bar in fullscreen"

Make any changes you want inherited to alternate profiles in the Default profile first.

  • Preferences > Profiles > Keys > Key Mappings > Presets > "Natural Text Editing"
  • Preferences > Profiles > Text > Font > "Favorite Font"
  • Preferences > Profiles > Text > Font > 12
  • Preferences > Profiles > Text > Font > Use ligatures
  • Preferences > Profiles > Window > Transparency > 10
  • Preferences > Profiles > Window > Blur > 10
  • Preferences > Profiles > Window > Settings for New Windows > Columns > 120
  • Preferences > Profiles > Window > Settings for New Windows > Rows > 60
  • Preferences > Profiles > Terminal > Unlimited Scrollback

Download and install favorite themes:

VS Code Themes

  • Ayu Mirage Bordered
  • Monokai Pro
  • Monokai Dark Soda (?)
  • Material Theme Darker
  • Material Neutral
  • Panda
  • Baby Panda
  • oh-lucy-evening
  • Andromeda
  • Snazzy Light
  • Snazzy Operator Softer
  • peacocks-in-space

To-Do

About

New machine configuration.


Languages

Language:Shell 100.0%