Skip to content

Commit b6f852f

Browse files
authored
Merge pull request #66 from snkrheadz/fix/p10k-instant-prompt-and-terminal-config
fix: switch to Powerlevel10k and fix terminal compatibility
2 parents 935036b + 4e4639c commit b6f852f

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

Brewfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ brew "pkgconf"
6969
brew "plantuml"
7070
brew "pngquant"
7171
brew "podman"
72+
brew "powerlevel10k"
7273
brew "poetry"
7374
brew "poppler"
7475
brew "pre-commit"

ghostty/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ theme = Catppuccin Frappe
1313
window-inherit-working-directory = true
1414
window-padding-x = 10
1515
window-padding-y = 10
16+
window-padding-balance = false
1617
window-decoration = true
1718

1819
# Background

tmux/.tmux.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# カラーモード強化
2-
set -g default-terminal "screen-256color"
2+
set -g default-terminal "tmux-256color"
3+
set -ga terminal-overrides ",xterm-ghostty:Tc"
34

45
# マウス操作を有効に(クリックでペイン切替、ドラッグでリサイズ、ホイールでスクロール)
56
set -g mouse on

zsh/.zshrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
2+
# Initialization code that may require console input (password prompts, [y/n]
3+
# confirmations, etc.) must go above this block; everything else may go below.
4+
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
5+
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
6+
fi
7+
18
# load custom executable functions
29
for function in ~/.zsh/functions/*; do
310
source $function
@@ -57,7 +64,7 @@ export ZSH="$HOME/.oh-my-zsh"
5764
# load a random theme each time oh-my-zsh is loaded, in which case,
5865
# to know which specific one was loaded, run: echo $RANDOM_THEME
5966
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
60-
ZSH_THEME="Jonathan"
67+
ZSH_THEME="powerlevel10k/powerlevel10k"
6168

6269
# Set list of themes to pick from when loading at random
6370
# Setting this variable when ZSH_THEME=random will cause zsh to load
@@ -218,3 +225,6 @@ export PATH="$HOME/.antigravity/antigravity/bin:$PATH"
218225
# Claude Status Bar Monitor
219226
alias cs='claude-statusbar'
220227
alias cstatus='claude-statusbar'
228+
229+
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
230+
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

zsh/configs/keybindings.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# give us access to ^Q
2-
stty -ixon
2+
[[ -t 0 ]] && stty -ixon
33

44
# vi mode
55
bindkey -v

0 commit comments

Comments
 (0)