mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-03 22:22:03 +00:00
fix(ghostty): terminal style
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user