add xres value st.lightmode, aliases: add missing local and query from command, new lg alias

- rename st alias to gst
This commit is contained in:
2025-10-10 07:47:59 +02:00
parent 95fdacdd31
commit ce19fa1371
2 changed files with 16 additions and 3 deletions

View File

@@ -3,6 +3,15 @@ alias ll='ls -l'
alias tl='tmux list-sessions' alias tl='tmux list-sessions'
alias rgh='rg -.' alias rgh='rg -.'
alias fdh='fd -H' alias fdh='fd -H'
alias lg=lazygit
if alias st > /dev/null; then
alias gst='_vcs status'
unalias st
fi
if alias r > /dev/null; then
unalias r
fi
if which exa > /dev/null; then if which exa > /dev/null; then
alias ls='exa --icons' alias ls='exa --icons'
@@ -21,9 +30,10 @@ tn() {
} }
tni() { tni() {
DIR=$(zoxide query -l | vis-menu -p 'Dir:' -l 10) local Q="${@:-}"
local DIR=$(zoxide query -l | vis-menu -p 'Dir:' -l 10 "$Q")
if [ -n "$DIR" ]; then if [ -n "$DIR" ]; then
NAME=$(echo | vis-menu -p 'Session name:' $(basename $DIR)) local NAME=$(echo | vis-menu -p 'Session name:' $(basename $DIR))
if [ -n "$DIR" ]; then if [ -n "$DIR" ]; then
tmux new -A -s "$NAME" -c "$DIR" tmux new -A -s "$NAME" -c "$DIR"
fi fi
@@ -39,7 +49,8 @@ ta() {
} }
tai() { tai() {
NAME=$(tmux ls | vis-menu -p 'Session:' -l 10 | cut -d: -f1) local Q="${@:-}"
local NAME=$(tmux ls | vis-menu -p 'Session:' -l 10 "$Q" | cut -d: -f1)
if [ -n "$NAME" ]; then if [ -n "$NAME" ]; then
tmux attach -t "$NAME" tmux attach -t "$NAME"
fi fi

View File

@@ -59,6 +59,7 @@ XTerm.vt100.color15: #ECEFF4
st.font: FiraCode Nerd Font:size=10 st.font: FiraCode Nerd Font:size=10
#ifdef THEME_DARK #ifdef THEME_DARK
st.lightmode: 0
st.background: #1f212e st.background: #1f212e
st.foreground: #9da0af st.foreground: #9da0af
st.cursorColor: #bf8040 st.cursorColor: #bf8040
@@ -80,6 +81,7 @@ st.color13: #8f248f
st.color14: #509595 st.color14: #509595
st.color15: #dbdff0 st.color15: #dbdff0
#else #else
st.lightmode: 1
st.background: #f2f2f3 st.background: #f2f2f3
st.foreground: #1f212e st.foreground: #1f212e
st.cursorColor: #bf8040 st.cursorColor: #bf8040