.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.
run bash setup_machine.sh
to:
- create symlinks in $HOME to the files in this directory
- 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/
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
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
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
-
apt install zsh
-
Change the default shell to zsh
chsh -s /usr/bin/zsh root
-
Install oh my zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
-
Manual powerlevel10k installation
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
-
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 -
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
-
Make the terminal look nicer
vim ~/.p10k.zsh
search forDIR_FOREGROUND
and change to227
(yellow)
search forANCHOR_FOREGROUND
and change to173
(red) -
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
- Click
File | Manage IDE Settings | Import Settings
- Import the jetbrains settings zip
- You can update the settings with:
File | Manage IDE Settings | Export Settings
- You can update the settings with:
- You may need to restart the IDE.
- 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!