I like it - Init commit
This commit is contained in:
parent
7d486c7f78
commit
b8db26545b
30
.zsh_plugins.txt
Normal file
30
.zsh_plugins.txt
Normal file
@ -0,0 +1,30 @@
|
||||
# Basic Zsh plugins are defined in user/repo format
|
||||
jeffreytse/zsh-vi-mode
|
||||
|
||||
# jump around - Tracks your most used directories, based on 'frecency'.
|
||||
rupa/z
|
||||
|
||||
# set up Zsh completions with plugins
|
||||
#mattmc3/ez-compinit
|
||||
#zsh-users/zsh-completions kind:fpath path:src
|
||||
|
||||
# oh-my-zsh
|
||||
getantidote/use-omz # handle OMZ dependencies
|
||||
ohmyzsh/ohmyzsh path:lib # load OMZ's library
|
||||
ohmyzsh/ohmyzsh path:plugins/colored-man-pages # load OMZ plugins
|
||||
|
||||
# prompts:
|
||||
# with prompt plugins, remember to add this to your .zshrc:
|
||||
# `autoload -Uz promptinit && promptinit && prompt powerlevel10k`
|
||||
romkatv/powerlevel10k kind:fpath
|
||||
|
||||
# fish-like plugins
|
||||
zsh-users/zsh-autosuggestions
|
||||
zsh-users/zsh-history-substring-search
|
||||
zdharma-continuum/fast-syntax-highlighting kind:defer
|
||||
|
||||
# fzf
|
||||
joshskidmore/zsh-fzf-history-search
|
||||
|
||||
# pyenv
|
||||
mattberther/zsh-pyenv
|
38
.zshrc
Normal file
38
.zshrc
Normal file
@ -0,0 +1,38 @@
|
||||
# source antidote
|
||||
source $(brew --prefix)/opt/antidote/share/antidote/antidote.zsh
|
||||
|
||||
# initialize plugins statically with ${ZDOTDIR:-~}/.zsh_plugins.txt
|
||||
antidote load
|
||||
|
||||
# autoload
|
||||
autoload -Uz promptinit && promptinit && prompt powerlevel10k
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
# fzf_history_search keybinding after zsh-vi-mode initialization
|
||||
zvm_after_init() {
|
||||
bindkey '^_' fzf_history_search
|
||||
}
|
||||
|
||||
#### ghostty updates to get virt-manager to launch properly ####
|
||||
# Dynamically set DISPLAY for XQuartz
|
||||
set_xquartz_display() {
|
||||
# Look for directories matching /private/tmp/com.apple.launchd.*/org.xquartz:0
|
||||
local xquartz_dir=$(ls -d /private/tmp/com.apple.launchd.*/org.xquartz:0 2>/dev/null | head -n 1)
|
||||
|
||||
# If a matching directory is found, set DISPLAY; otherwise, set a fallback or skip
|
||||
if [[ -n "$xquartz_dir" ]]; then
|
||||
export DISPLAY="$xquartz_dir"
|
||||
else
|
||||
# Optional: Set a fallback or leave unset
|
||||
export DISPLAY=":0" # Fallback to local display, adjust as needed
|
||||
echo "Warning: No XQuartz display found" >&2
|
||||
fi
|
||||
}
|
||||
|
||||
# Run the function to set DISPLAY for xquartz
|
||||
set_xquartz_display
|
||||
|
||||
# Update XDG_DATA_DIRS for GSettings schemas
|
||||
export XDG_DATA_DIRS=/usr/local/share:/usr/share:/opt/homebrew/share:$XDG_DATA_DIRS
|
Loading…
Reference in New Issue
Block a user