https://github.com/hobart2967/shell-setup
My personal shell setup automation, including daily used tools and OhMyZsh, Compatible with Linux, WSL and MacOS
https://github.com/hobart2967/shell-setup
android asdf aws brew iterm java linux mac macos node python serverless shell utils wsl zsh
Last synced: 4 months ago
JSON representation
My personal shell setup automation, including daily used tools and OhMyZsh, Compatible with Linux, WSL and MacOS
- Host: GitHub
- URL: https://github.com/hobart2967/shell-setup
- Owner: Hobart2967
- Created: 2022-06-18T20:10:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-29T13:04:52.000Z (4 months ago)
- Last Synced: 2025-06-09T03:46:32.710Z (4 months ago)
- Topics: android, asdf, aws, brew, iterm, java, linux, mac, macos, node, python, serverless, shell, utils, wsl, zsh
- Language: Shell
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shell-setup
## PRE-REQUISITES
```sh
# Install ZSH on MacOs
brew install zsh# Install ZSH on debian distros
sudo apt install zsh
```Then, add oh my zsh:
```sh
# Install OhMyZsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```## USAGE
Add to shell profile (~/.zshrc):```sh
export PERSONAL_SHELL_SETUP_PATH=
source $PERSONAL_SHELL_SETUP_PATH/_index.sh
```For zsh, put this right before the following call:
```sh
export MACHINE_TYPE=work # or: home
source $ZSH/oh-my-zsh.sh
```## Beauty-Setup
On Windows 10:
```sh
export TMP_DIR=/mnt/c/Temp
mkdir -p $TMP_DIR
curl -L -o $TMP_DIR/powerline.zip https://github.com/powerline/fonts/archive/refs/heads/master.zip
unzip $TMP_DIR/powerline.zip -d $TMP_DIR/powerline
``````powershell
Set-ExecutionPolicy RemoteSigned
C:\Temp\powerline\fonts-master\install.ps1
Set-ExecutionPolicy Default
cd
Remove-Item -Recurse -Force C:\Temp\
```## Environment file
To make the shell setup load an non-version controlled, create a .env file in your home directory:
```sh
AN_ENVIRONMENT_VAR=WITH_VALUE
```Upon next shell init it will be globally available for your user.
## Install java
asdf plugin add java
asdf install java corretto-11.0.19.7.1