fix(ghostty): terminal style

This commit is contained in:
Kristofers Solo 2025-04-29 13:16:02 +03:00
parent a12f7c4197
commit d028d0ad38
Signed by: kristoferssolo
GPG Key ID: 74FF8144483D82C8
3 changed files with 17 additions and 4 deletions

View File

@ -17,7 +17,7 @@ $bg: rgba(25, 23, 37, 0.7);
* {
all: unset;
font-family: "JetBrainsMono NF";
font-family: "JetBrainsMono Nerd Font";
font-size: 20;
}

View File

@ -1,3 +1,4 @@
#!config
[user]
email = dev@kristofers.xyz
name = Kristofers Solo
@ -88,7 +89,7 @@
markEmptyLines = false
[color "diff"]
meta = black bold
meta = white dim
frag = magenta
context = white
whitespace = yellow reverse

View File

@ -14,12 +14,24 @@ selected_name=$(basename "$selected" | tr . _)
tmux_running=$(pgrep tmux)
if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
tmux new-session -s "$selected_name" -c "$selected"
# Create new session with nvim in first window, detached
tmux new-session -ds "$selected_name" -c "$selected" "${EDITOR:-vim} ."
# Create second window as plain terminal
tmux new-window -t "$selected_name:" -c "$selected"
# Select the first window (index 0)
tmux select-window -t "$selected_name:1"
# Attach to the session
tmux attach-session -t "$selected_name"
exit 0
fi
if ! tmux has-session -t="$selected_name" 2>/dev/null; then
tmux new-session -ds "$selected_name" -c "$selected"
# Create new session with nvim in first window, detached
tmux new-session -ds "$selected_name" -c "$selected" "${EDITOR:-vim} ."
# Create second window as plain terminal
tmux new-window -t "$selected_name:" -c "$selected"
# Select the first window (index 0)
tmux select-window -t "$selected_name:1"
fi
tmux switch-client -t "$selected_name"