Skip to content

Latest commit

 

History

History
93 lines (55 loc) · 4.88 KB

README.md

File metadata and controls

93 lines (55 loc) · 4.88 KB

Falkor's Dotfiles -- OhMyZSH Customization

Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that make you shout...

So I use Oh-My-Zsh using the excellent powerlevel10k prompt theme and the Darkside iTerm Color scheme.

The font I use is Meslo Nerd Font patched for Powerlevel10k at 15pt (for both Regular and Non-ASCII font). You can find more information on the way I configured iTerm2 on my blog.

Screenshot

Pre-requisites

Meslo Nerd Font patched for Powerlevel10k

See instructions from powerlevel10k: if you are using iTerm2 or Termux, p10k configure can install the recommended font for you. Simply answer Yes when asked whether to install Meslo Nerd Font.

You should install the Source Code Pro Patched fonts following these instructions yet adapted to this font.

Darkside Color Scheme

You can find it (and many other color schemes) on http://iterm2colorschemes.com/ and within the associated github repository (under scheme/).

Install it within iTerm2 by picking Darkside[.itermcolors] under iTerm Preferences / Profiles / Colors / Load Presets. You'll have to repeat it for all your profiles.

Falkor's Custom plugin for Oh-My-ZSH

Lots of things I do every day have been shortened within one, two or three character mnemonic aliases. You can find these aliases (together with my prompt customization) under the form of a custom plugin for oh-My-ZSH named... Falkor

See falkor.plugin.zsh for more details.

Installation, the lazy way

  • Install zsh

  • Install Oh-My-ZSH

      $> sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    
  • Clone Falkor's dotfile as suggested, i.e.

      $> git clone https://github.com/Falkor/dotfiles.git ~/.config/dotfiles.falkor.d
    

Now run:

$> cd ~/.config/dotfiles.falkor.d
$> ./install.sh -n --zsh     # DRY_RUN - OR ./install.sh -n --with-zsh
$> ./install.sh --zsh        # OR ./install.sh --with-zsh

This will configure the following components:

  • ~/.zshenv
  • ~/.config/zsh
  • ~/.local/share/oh-my-zsh (Oh-My-ZSH)
  • $ZSH_CUSTOM, pointing to ~/.config/zsh/custom

Uninstall

$> cd ~/.dotfiles.falkor.d
$> ./install.sh --delete --zsh

Customizations

you can define your own aliases under ~/.oh-my-zsh/custom/private_aliases.zsh (which is not meant to be tracked thus ignored within Falkor's dotfiles oh-my-zsh/custom/.gitignore for instance).

Follow also this guide from Oh-My-ZSH for more details.

Note on Powerlevel10k theme configuration

You might wish to reproduce my configuration of Powerlevel10k as depicted in the above screenshot yet without installing my dotfiles.

See also the official prompt customization guide for alternative segments you might wish to integrate.