Skip to content

Instantly share code, notes, and snippets.

@aditya-r-m
Last active December 31, 2025 18:50
Show Gist options
  • Select an option

  • Save aditya-r-m/50a054ea779fb87b4bd8fb3eac96d870 to your computer and use it in GitHub Desktop.

Select an option

Save aditya-r-m/50a054ea779fb87b4bd8fb3eac96d870 to your computer and use it in GitHub Desktop.
theme = "papercolor-dark"
[editor]
true-color = true
line-number = "relative"
[editor.indent-guides]
render = true
[keys.normal]
s = ":w"
q = ":wq"
r = ":reload"
[keys.insert]
C-n = "normal_mode"
[keys.select]
s = ":w"
q = ":wq"
C-n = "normal_mode"
# sudo apt install tmux hx htop cmake rustup
# rustup default stable && rustup component add rust-analyzer
# hx --grammar fetch && hx --grammar build
# gsettings set org.gnome.shell.keybindings switch-to-application-1 ["'<Alt>1'"]
alias bg="cargo build --release && cmake --build build && ./build/game"
alias cg="cd ~/game"
alias hg="hx game.c src/* art/*"
function tx {
cg
if tmux has-session; then
tmux attach
else
tmux new-session \;\
split-window -v \;\
split-window -hf \;\
send-keys -t 0 htop Enter Escape \;\
resize-pane -t 0 -y 11 \;\
resize-pane -t 2 -x 120 \;\
send-keys -t 2 hg Enter \;\
attach
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment