Skip to content

Latest commit

 

History

History
87 lines (66 loc) · 3.21 KB

README.md

File metadata and controls

87 lines (66 loc) · 3.21 KB

dot_files

Meaning of each dotfile

.commonrc: Common rc configs that will always be sourced, no matter the operating system,

.commonbashrc: Common rc configs that will always be sourced on bash-based shells.

.commonzshrc: Common rc configs that will always be sourced on zsh-based shells.

Installation:

run bash setup_machine.sh to:

  1. create symlinks in $HOME to the files in this directory
  2. install the core packages

Since the default macOS shell is now zsh, if you want to change the macOS shell to bash, use: https://www.google.com/amp/s/www.howtogeek.com/444596/how-to-change-the-default-shell-to-bash-in-macos-catalina/amp/

Bash_rc

As of April 2023 I'm not using this. curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash

Other installation

Installing miniconda on ubuntu:

mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh
Git

As of April 2023 I'm not using this. Run this if you want git to automatically run the suggested commands (when you make a typo). git config --global help.autocorrect 1

zsh
  1. apt install zsh

  2. Change the default shell to zsh
    chsh -s /usr/bin/zsh root

  3. Install oh my zsh
    wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

  4. Manual powerlevel10k installation
    git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc

  5. log out, then log in. Provide the following answers:
    5 yeses
    lean
    unicode
    256 colors
    no (show current time)
    2 lines
    dotted
    left (prompt frame)
    lightest (connection frame color)
    compact (prompt spacing)
    few icons
    concise (prompt flow)
    no (enable transient prompt)
    verbose (instant prompt mode)
    yes (apply changes to .zshrc

  6. append .zshrc in this dir to .zshrc. (Note: Your configs need to appended cause powerlevel10k overwrites flags like vi mode)
    cat ~/dot_files/.zshrc >> ~/.zshrc

  7. Make the terminal look nicer
    vim ~/.p10k.zsh
    search for DIR_FOREGROUND and change to 227 (yellow)
    search for ANCHOR_FOREGROUND and change to 173 (red)

  8. log out. then log in.

TODO: install https://github.com/wting/autojump and https://github.com/zsh-users/zsh-autosuggestions also figure out how to export zsh config

JetBrains
  1. Click File | Manage IDE Settings | Import Settings
  2. Import the jetbrains settings zip
    • You can update the settings with: File | Manage IDE Settings | Export Settings
IDEAVim
  • You may need to restart the IDE.
How to add new packages to Amazon Linux when they are NOT available by the package manager
  • The best way to do this is to just build the package from source (using cargo build for example), then put it into a directory in this repo, and just copy it over into the user's root directory in the install script. Don't forget to add the directory into the user's PATH!