Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up ZSH, tabby, antidote, oh-my-zsh, asdf 0.16, and powerline 10k for a sublime terminal experience #91

Open
joshmfrankel opened this issue Feb 23, 2025 · 0 comments

Comments

@joshmfrankel
Copy link
Owner

joshmfrankel commented Feb 23, 2025

Asdf

  1. Download binary - https://github.com/asdf-vm/asdf/releases
  2. Place binary within ~/.asdf
  3. Add binary to path in .zshrc - export PATH="$HOME/.asdf:$PATH"
  4. Re-source
sudo dnf install libyaml-devel
asdf plugin add ruby
asdf plugin add nodejs
asdf set ruby 3.4.2
asdf set nodejs latest
asdf install

.tool-versions

ruby 3.4.2
nodejs 20.3.8

Antidote - ZSH plugin manager

  1. Clone the repo - git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
  2. Add following to .zshrc (Make sure that these stay above the p10k instant prompt block)
# source antidote
source /path/to/antidote/antidote.zsh

# initialize plugins statically with ${ZDOTDIR:-~}/.zsh_plugins.txt
antidote load
  1. touch ~/.zsh_plugins.txt
  2. source ~/.zshrc

.zsh_plugins.txt

  1. Add following:
# Prompt
romkatv/powerlevel10k

# Functionality
zsh-users/zsh-autosuggestions
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-completions

# Oh-my-zsh
getantidote/use-omz

# Make Zsh more featureful
ohmyzsh/ohmyzsh path:lib 

# Oh-my-zsh plugins
ohmyzsh/ohmyzsh path:plugins/rails
ohmyzsh/ohmyzsh path:plugins/git
ohmyzsh/ohmyzsh path:plugins/bundler
  1. Re-source .zshrc
  2. Install Meslo Nerd font (https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#manual-font-installation)
  3. Change Editor font
  4. Ensure integrated terminals also utilized this (e.g. Cursor or Vs Code)
Image
  1. Run p10k configure
  2. Delete branch truncation in .p10k.zsh
# Tip: To always show local branch name in full without truncation, delete the next line.      (( $#branch > 32 )) && branch[13,-13]="…"  # <-- this line

Enable basic ZSH autocd

############
# Features #
############

# Autocd
setopt autocd
autoload -U compinit
compinit

# Colorized output
export CLICOLOR=1

Aliases and Functions

alias reload="exec zsh"
alias config="vim ~/.zshrc"
alias plugins="vim ~/.zsh_plugins.txt"

# Kill Process by
#
# port - All processes with port will be killed
# name - All processes given a name will be killed
function kill-process-by()
{
  case $1 in
  port )
    kill -9 $(lsof -ti tcp:$2)
    ;;
  name )
    kill -9 $(lsof -t -c $2)
    ;;
  esac
}

Fixes

# Fix Mac thread fork issue with Ruby
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

# Fix ruby-pg seg faults
# https://github.com/ged/ruby-pg/issues/538
export PGGSSENCMODE="disable"

# Fix GPG signed commits
export GPG_TTY=$(tty)

Tabby

Appearance

Image

Color Scheme
Image

Hotkeys

Image

Dock

Image
@joshmfrankel joshmfrankel changed the title Perfect development environment Setting up ZSH, tabby, antidote, oh-my-zsh, asdf 0.16, and powerline 10k for a sublime terminal experience Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant