Update zshrc with gemini commands

This commit is contained in:
Alex Selimov 2025-09-22 20:47:14 -04:00
commit 0b3239e632
No known key found for this signature in database
GPG key ID: BC03C17FF5CFFFD2
6 changed files with 34 additions and 56 deletions

View file

@ -7,14 +7,14 @@ GHOSTTY_CONF="${HOME}/.config/ghostty/config"
[ -f "$GHOSTTY_CONF" ] || { echo "Missing $GHOSTTY_CONF"; exit 1; } [ -f "$GHOSTTY_CONF" ] || { echo "Missing $GHOSTTY_CONF"; exit 1; }
set_light_mode() { set_light_mode() {
sed -E -i '' 's/^([[:space:]]*theme[[:space:]]*=[[:space:]]*)zenwritten-dark/\1zenwritten-light/' "$GHOSTTY_CONF" sed -E -i 's/^([[:space:]]*theme[[:space:]]*=[[:space:]]*)zenwritten-dark/\1zenwritten-light/' "$GHOSTTY_CONF"
sed -E -i '' 's/(vim.g.light_mode[[:space:]]*=[[:space:]]*).*/\1true/' "$NVIM_CONF" sed -E -i 's/(vim.g.light_mode[[:space:]]*=[[:space:]]*).*/\1true/' "$NVIM_CONF"
MODE="light" MODE="light"
} }
set_dark_mode() { set_dark_mode() {
sed -E -i '' 's/^([[:space:]]*theme[[:space:]]*=[[:space:]]*)zenwritten-light/\1zenwritten-dark/' "$GHOSTTY_CONF" sed -E -i 's/^([[:space:]]*theme[[:space:]]*=[[:space:]]*)zenwritten-light/\1zenwritten-dark/' "$GHOSTTY_CONF"
sed -E -i '' 's/(vim.g.light_mode[[:space:]]*=[[:space:]]*).*/\1false/' "$NVIM_CONF" sed -E -i 's/(vim.g.light_mode[[:space:]]*=[[:space:]]*).*/\1false/' "$NVIM_CONF"
MODE="dark" MODE="dark"
} }
@ -62,58 +62,19 @@ if [ "$(uname)" != "Darwin" ]; then
if [ "$MODE" == "dark" ]; then if [ "$MODE" == "dark" ]; then
echo "Swapping to dark mode" echo "Swapping to dark mode"
# GTK Theme # GTK Theme
sed -i -e 's@Net/ThemeName.*@Net/ThemeName "Orchis-Grey-Dark"@' ~/.xsettingsd gsettings set org.gnome.desktop.interface gtk-theme ''
gsettings set org.gnome.desktop.interface gtk-theme 'WhiteSur-Dark'
# Rofi theme # Rofi theme
sed -i -e "s/light.rasi/dark.rasi/" $HOME/.config/rofi/config.rasi sed -i -e "s/light.rasi/dark.rasi/" $HOME/.config/rofi/config.rasi
# Swap ST colors and reset
echo " st*color0:#191919
st*color1:#DE6E7C
st*color2:#819B69
st*color3:#B77E64
st*color4:#6099C0
st*color5:#B279A7
st*color6:#66A5AD
st*color7:#BBBBBB
st*color8:#3d3839
st*color9:#E8838F
st*color10:#8BAE68
st*color11:#D68C67
st*color12:#61ABDA
st*color13:#CF86C1
st*color14:#65B8C1
st*color15:#8e8e8e
" > ~/.Xresources
xrdb merge ~/.Xresources
killall st -s "USR1"
else else
echo "Swapping to light mode" echo "Swapping to light mode"
# GTK Theme # GTK Theme
sed -i -e 's@Net/ThemeName.*@Net/ThemeName "Orchis-Grey-Light"@' ~/.xsettingsd gsettings set org.gnome.desktop.interface gtk-theme ''
gsettings set org.gnome.desktop.interface gtk-theme 'WhiteSur-Light'
# Rofi theme # Rofi theme
sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi
# # Update ST colors
echo " st*color0:#F0EDEC
st*color1:#A8334C
st*color2:#4F6C31
st*color3:#944927
st*color4:#286486
st*color5:#88507D
st*color6:#3B8992
st*color7:#2C363C
st*color8:#CFC1BA
st*color9:#94253E
st*color10:#3F5A22
st*color11:#803D1C
st*color12:#1D5573
st*color13:#7B3B70
st*color14:#2B747C
st*color15:#4F5E68
" > ~/.Xresources
xrdb merge ~/.Xresources
killall st -s "USR1"
fi fi
killall -HUP xsettingsd killall -HUP xsettingsd

6
home/.profile Normal file
View file

@ -0,0 +1,6 @@
. "$HOME/.cargo/env"
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"

6
home/.xprofile Executable file
View file

@ -0,0 +1,6 @@
. "$HOME/.cargo/env"
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"

View file

@ -26,8 +26,6 @@ export XDEB_PKGROOT=${HOME}/.config/xdeb
# Custom path additions # Custom path additions
source ~/.profile source ~/.profile
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
#============================================================================== #==============================================================================
# Aliases # Aliases
@ -35,7 +33,6 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
alias clip2png="xclip -selection clipboard -target image/png -out" alias clip2png="xclip -selection clipboard -target image/png -out"
#============================================================================== #==============================================================================
# Gemini Agents # Gemini Agents
#============================================================================== #==============================================================================
@ -135,23 +132,31 @@ load_nvm() {
# Create placeholder functions that load nvm once, then call the real command # Create placeholder functions that load nvm once, then call the real command
nvm() { nvm() {
unset -f nvm node npm unset -f nvm node npm gemini
load_nvm load_nvm
nvm "$@" nvm "$@"
} }
node() { node() {
unset -f nvm node npm unset -f nvm node npm gemini
load_nvm load_nvm
node "$@" node "$@"
} }
npm() { npm() {
unset -f nvm node npm unset -f nvm node npm gemini
load_nvm load_nvm
npm "$@" npm "$@"
} }
gemini() {
unset -f nvm node npm gemini
load_nvm
gemini "$@"
}
# ghcup # ghcup
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
@ -201,10 +206,10 @@ if [ "$(uname)" = "Darwin" ]; then
} }
export NVIM_JDTLS_JAVA_HOME="/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/" export NVIM_JDTLS_JAVA_HOME="/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/"
# I only start tmux by default on Mac because of dwm+swallow patch # I only start tmux by default on Mac because of dwm+swallow patch
if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then
tmux attach -t dev || tmux new -s dev
fi
else else
alias ls="ls --classify --group-directories-first --color" alias ls="ls --classify --group-directories-first --color"
fi fi
if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then
tmux attach -t dev || tmux new -s dev
fi

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB