Compare commits

...

3 Commits

Author SHA1 Message Date
Anthony Oteri 7a108d5446 feat: swap prompts to oh-my-posh 2025-09-12 08:02:37 -04:00
Anthony Oteri b1b9decde4 feat: configure zsh plugins and snippets properly 2025-09-12 07:53:53 -04:00
Anthony Oteri 1c621c116d fix: disable startup tips in zellij 2025-09-12 07:53:37 -04:00
3 changed files with 198 additions and 20 deletions
+165
View File
@@ -0,0 +1,165 @@
console_title_template = '{{ .Shell }} in {{ .Folder }}'
version = 3
final_space = true
[palette]
black = '#262B44'
blue = '#4B95E9'
green = '#59C9A5'
orange = '#F07623'
red = '#D81E5B'
white = '#E0DEF4'
yellow = '#F3AE35'
[secondary_prompt]
template = '<p:yellow,transparent></><,p:yellow> > </><p:yellow,transparent></> '
foreground = 'p:black'
background = 'transparent'
[transient_prompt]
template = '<p:yellow,transparent></><,p:yellow> {{ .Folder }} </><p:yellow,transparent></> '
foreground = 'p:black'
background = 'transparent'
[upgrade]
source = 'cdn'
interval = '168h'
auto = false
notice = false
[[blocks]]
type = 'prompt'
alignment = 'left'
[[blocks.segments]]
leading_diamond = ''
trailing_diamond = ''
template = ' {{ if .SSHSession }} {{ end }}{{ .UserName }} '
foreground = 'p:black'
background = 'p:yellow'
type = 'session'
style = 'diamond'
[[blocks.segments]]
template = '  {{ path .Path .Location }} '
foreground = 'p:white'
powerline_symbol = ''
background = 'p:orange'
type = 'path'
style = 'powerline'
[blocks.segments.properties]
style = 'folder'
[[blocks.segments]]
template = ' {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} '
foreground = 'p:black'
powerline_symbol = ''
background = 'p:green'
type = 'git'
style = 'powerline'
foreground_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}', '{{ if gt .Ahead 0 }}p:white{{ end }}']
background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}', '{{ if gt .Ahead 0 }}#49416D{{ end }}', '{{ if gt .Behind 0 }}#7A306C{{ end }}']
[blocks.segments.properties]
branch_template = '{{ trunc 25 .Branch }}'
fetch_status = true
fetch_upstream_icon = true
[[blocks.segments]]
template = '  '
foreground = 'p:white'
powerline_symbol = ''
background = 'p:yellow'
type = 'root'
style = 'powerline'
[[blocks.segments]]
leading_diamond = '<transparent,background></>'
trailing_diamond = ''
template = ' {{ if gt .Code 0 }}{{ else }}{{ end }} '
foreground = 'p:white'
background = 'p:blue'
type = 'status'
style = 'diamond'
background_templates = ['{{ if gt .Code 0 }}p:red{{ end }}']
[blocks.segments.properties]
always_enabled = true
[[blocks]]
type = 'rprompt'
[[blocks.segments]]
template = ' '
foreground = 'p:green'
background = 'transparent'
type = 'node'
style = 'plain'
[blocks.segments.properties]
display_mode = 'files'
fetch_package_manager = false
home_enabled = false
[[blocks.segments]]
template = ' '
foreground = 'p:blue'
background = 'transparent'
type = 'go'
style = 'plain'
[blocks.segments.properties]
fetch_version = false
[[blocks.segments]]
template = ' '
foreground = 'p:yellow'
background = 'transparent'
type = 'python'
style = 'plain'
[blocks.segments.properties]
display_mode = 'files'
fetch_version = false
fetch_virtual_env = false
[[blocks.segments]]
template = 'in <p:blue><b>{{ .Name }}</b></> '
foreground = 'p:white'
background = 'transparent'
type = 'shell'
style = 'plain'
[[blocks.segments]]
template = 'at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>'
foreground = 'p:white'
background = 'transparent'
type = 'time'
style = 'plain'
[[tooltips]]
leading_diamond = ''
trailing_diamond = ''
template = '  {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} '
foreground = 'p:white'
background = 'p:orange'
type = 'aws'
style = 'diamond'
tips = ['aws']
[tooltips.properties]
display_default = true
[[tooltips]]
leading_diamond = ''
trailing_diamond = ''
template = '  {{ .Name }} '
foreground = 'p:white'
background = 'p:blue'
type = 'az'
style = 'diamond'
tips = ['az']
[tooltips.properties]
display_default = true
+5 -1
View File
@@ -1,3 +1,7 @@
//
// THIS FILE WAS AUTOGENERATED BY ZELLIJ, THE PREVIOUS FILE AT THIS LOCATION WAS COPIED TO: /Users/anthony/.config/zellij/config.kdl.bak
//
keybinds clear-defaults=true { keybinds clear-defaults=true {
locked { locked {
bind "Ctrl g" { SwitchToMode "normal"; } bind "Ctrl g" { SwitchToMode "normal"; }
@@ -503,7 +507,7 @@ web_client {
// Whether to show tips on startup // Whether to show tips on startup
// Default: true // Default: true
// //
// show_startup_tips false show_startup_tips false
// Whether to show release notes on first version run // Whether to show release notes on first version run
// Default: true // Default: true
+28 -19
View File
@@ -1,10 +1,3 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Homebrew integration # Homebrew integration
eval "$(/opt/homebrew/bin/brew shellenv)" eval "$(/opt/homebrew/bin/brew shellenv)"
@@ -20,6 +13,12 @@ fi
# Source / Load Zinit # Source / Load Zinit
source "${ZINIT_HOME}/zinit.zsh" source "${ZINIT_HOME}/zinit.zsh"
# Configure EZA snippet
zstyle ':omz:plugins:eza' 'dirs-first' yes
zstyle ':omz:plugins:eza' 'git-status' yes
zstyle ':omz:plugins:eza' 'icons' yes
zstyle ':omz:plugins:eza' 'show-group' yes
# Add in ZSH Plugins # Add in ZSH Plugins
zinit light zsh-users/zsh-syntax-highlighting zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-completions zinit light zsh-users/zsh-completions
@@ -27,23 +26,38 @@ zinit light zsh-users/zsh-autosuggestions
zinit light Aloxaf/fzf-tab zinit light Aloxaf/fzf-tab
# Add in snippets # Add in snippets
zinit snippet OMZP::git
zinit snippet OMZP::aliases zinit snippet OMZP::aliases
zinit snippet OMZP::branch zinit snippet OMZP::ansible
zinit snippet OMZP::github
zinit snippet OMZP::sudo
zinit snippet OMZP::aws zinit snippet OMZP::aws
zinit snippet OMZP::brew
zinit snippet OMZP::command-not-found
zinit snippet OMZP::common-aliases
zinit snippet OMZP::debian
zinit snippet OMZP::docker
zinit snippet OMZP::docker-compose
zinit snippet OMZP::dotenv
zinit snippet OMZP::eza
zinit snippet OMZP::gh
zinit snippet OMZP::git
zinit snippet OMZP::github
zinit snippet OMZP::kitty
zinit snippet OMZP::kubectl zinit snippet OMZP::kubectl
zinit snippet OMZP::kubectx zinit snippet OMZP::kubectx
zinit snippet OMZP::command-not-found zinit snippet OMZP::nmap
zinit snippet OMZP::rust
zinit snippet OMZP::ssh
zinit snippet OMZP::ssh-agent
zinit snippet OMZP::sudo
# Load completions # Load completions
autoload -U compinit && compinit autoload -U compinit && compinit
zinit cdreplay -q zinit cdreplay -q
# Add Starship prompt # Add in Oh-My-Posh Prompt
eval "$(starship init zsh)" if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
eval "$(oh-my-posh init zsh --config ${HOME}/.config/ohmyposh/omp.toml)"
fi
# History # History
HISTSIZE=5000 HISTSIZE=5000
@@ -80,11 +94,6 @@ export DOCKER_BUILDKIT=1
# Custom aliases # Custom aliases
alias cat='bat ' alias cat='bat '
alias ls='eza -al --color=always --group-directories-first --icons' # preferred listing
alias la='eza -a --color=always --group-directories-first --icons' # all files and dirs
alias ll='eza -l --color=always --group-directories-first --icons' # long format
alias lt='eza -aT --color=always --group-directories-first --icons' # tree listing
alias l='eza -lah --color=always --group-directories-first --icons' # tree listing
alias vim=$(which nvim) alias vim=$(which nvim)
alias vimdiff="$(which nvim) -d" alias vimdiff="$(which nvim) -d"
alias docker-compose="$(which docker) compose" alias docker-compose="$(which docker) compose"