GitXplorerGitXplorer
b

oh-my-zsh-custom

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
64cd6f80b8d75eb2f37462d0d4a4eec3b15a2ff4

Configure p10k pyenv prompt

bbrianschubert committed 5 months ago
Verified
8677354f5c7331a9262c3c0d6d383172f07a775f

Add ruff plugin to gitignore

bbrianschubert committed 5 months ago
Verified
3a96357b79405b0a0557a2d30c23a6de4a9fd47f

Add xo alias

bbrianschubert committed 5 months ago
Verified
5611ef40c26d4180f8a8a42808f958aad020d6d9

Fill in placeholders with GitHub repo URL

bbrianschubert committed a year ago
Verified
617895c871c7a1d1fc06566a307977ff592fbf27

Add function for selectively adding miniconda to PATH

bbrianschubert committed a year ago
Verified
807c0c94b03758576473a5808bb8205dfabf7a03

Tweak screen-off function

bbrianschubert committed a year ago

README

The README file for this repository.

Oh My Zsh custom

Personal Oh My Zsh customization directory.

Clone to ~/.oh-my-zsh/custom or point $ZSH_CUSTOM to the clone location.

Structure

  • ./aliases.zsh: miscellaneous aliases and shell functions.
  • ./themes/: oh my zsh themes. Generally git submodules.
  • ./plugins/: oh my zsh plugins. Generally git submodules.
  • ./other/: other zsh configuration. Currently just p10k config.

Setup

Start by installing zsh and Oh My Zsh.

Cloning

By default, Oh My Zsh's custom directory is located at ~/oh-my-zsh/custom. The simplest way to use this repo is to clone it to that location. Alternatively, clone anywhere and point $ZSH_CUSTOM to the clone location.

This repo includes several submodules that need to be initialized/populated. This can be done automatically at cloning time by passing --recurse-submodules. Since some submodules are quite large (e.g. powerlevel10k), it's also recommended to pass --shallow-submodules to perform shallow clones for the submodules.

$ cd ~/.oh-my-zsh/
$ rm -r ./custom

# Option 1 - all at one
$ git clone --recurse-submodules --shallow-submodules -- https://github.com/brianschubert/oh-my-zsh-custom.git custom

# Optiona 2 - manual

$ git clone -- https://github.com/brianschubert/oh-my-zsh-custom.git custom
$ cd custom
$ git submodule init
$ git submodule update --depth=1

Powerlevel10k theme config

  • Link the config file
    $ ln -fs ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/other/.p10k.zsh ~/.p10k.zsh
  • Install the reocommended fonts.

Optional External Dependencies

  • FZF
    • Install per README
    • Add fzf to plugins. Ships with Oh My Zsh.
  • poetry
    • Install normally.
    • Run
      $ mkdir $ZSH_CUSTOM/plugins/poetry
      $ poetry completions zsh > $ZSH_CUSTOM/plugins/poetry/_poetry
    • Add poetry to plugins.

Update ~/.zshrc

ZSH_THEME="powerlevel10k/powerlevel10k"

plugins=(
    git
    colored-man-pages
    command-not-found
    zsh-syntax-highlighting
    # fzf  # if fzf installed
    # poetry  # if poetry installed
    # rust  # if rust installed
    # docker
    # docker-compose
)

[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh