Skip to content

Dan's oh-my-zsh config πŸŒŸπŸ¦„πŸŒŸ

Notifications You must be signed in to change notification settings

dstockhammer/zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Dan's oh-my-zsh config

  1. Install a Nerd Font and configure your terminal to use the installed font.

  2. Install zsh

    sudo apt install zsh
    
  3. Make zsh your default shell

    chsh -s $(which zsh)
    

    Note: if you wish to run this command with sudo, you have to specify the current user:

    sudo chsh -s $(which zsh) $USER
    
  4. Clone this repo with all submodules to ~

    git clone --recurse-submodules git@github.com:dstockhammer/zsh.git ~/zsh
    
  5. Create a .zshrc that references the configuration in this repository

    echo 'source $HOME/zsh/.zshrc' > ~/.zshrc
    
  6. Switch to zsh and enjoy πŸŒŸπŸ¦„πŸŒŸ

    zsh
    

    Alternatively, if you're already using zsh, completely restart your shell. (Do not just reload your config with source ~/.zshrc)

  7. Update ohmyzsh and all themes/plugins:

     ./scripts/update-deps.sh
    

Windows Terminal + WSL

Settings for Windows Terminal with WSL:

{
    "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
    "hidden": false,
    "name": "Ubuntu",
    "source": "Windows.Terminal.Wsl",
    "startingDirectory": "//wsl$/Ubuntu/home/daniel",
    "colorScheme": "Solarized Dark - Patched",
    "fontFace": "Hack NF",
    "fontSize": 12
}

Patched Solarized Dark theme from Windows Terminal Themes:

{
    "name": "Solarized Dark - Patched",
    "black": "#002831",
    "red": "#d11c24",
    "green": "#738a05",
    "yellow": "#a57706",
    "blue": "#2176c7",
    "purple": "#c61c6f",
    "cyan": "#259286",
    "white": "#eae3cb",
    "brightBlack": "#475b62",
    "brightRed": "#bd3613",
    "brightGreen": "#475b62",
    "brightYellow": "#536870",
    "brightBlue": "#708284",
    "brightPurple": "#5956ba",
    "brightCyan": "#819090",
    "brightWhite": "#fcf4dc",
    "background": "#001e27",
    "foreground": "#708284"
}

Browser integration

To configure WSL to open browser URLs in Windows, you can use the wslview utility, which is a part of the wslu package.

sudo apt install wslu

Configure wslview to open your browser of choice in Windows. Here is an example for Firefox:

wslview -r $(wslpath -au 'C:\Program Files\Mozilla Firefox\firefox.exe')

Plugins and other tools

pyenv

See https://github.com/pyenv/pyenv

TL;DR installation:

curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash

Finding and installing the latest python version:

# returns a list of 3.9.x versions.
pyenv install --list | grep 3.9

# take the latest version; let's say 3.9.1

# install a specific version
pyenv install 3.9.1

# set the installed version as global version
pyenv global 3.9.1

# check installed versions and confirm the new version is now global
pyenv versions

# never use `system` unless you know what you're doing!

poetry

See https://github.com/python-poetry/poetry

TL;DR installation:

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

thefuck

See https://github.com/nvbn/thefuck

TL;DR installation:

sudo apt update && sudo apt install python3-dev python3-pip python3-setuptools

# make sure to switch to system python!
pyenv shell system

pip3 install thefuck

# restart your shell

About

Dan's oh-my-zsh config πŸŒŸπŸ¦„πŸŒŸ

Topics

Resources

Stars

Watchers

Forks

Languages