Skip to content

Instantly share code, notes, and snippets.

@Thomashrb
Thomashrb / gist:36cbbf43f05dc5705d5c5df2d436b3dc
Created February 2, 2024 21:42
open emacs client but start emacs daemon initially if it is not running
emacsclient --alternate-editor='' -nw
@Thomashrb
Thomashrb / gist:cc1e62725e49a6d03b2a8284deaa74f2
Created February 11, 2024 14:48
weechat install slack plugin
# this is also documented on the weechat pluging repository
# except for the first step which took me a minute to figure out
/set script.scripts.download_enabled on
/script install slack.py
/slack register
@Thomashrb
Thomashrb / gist:d832a40cb64177dacc1dc9866a057134
Created March 20, 2024 22:56
select tmux session and kill it
for s in \$(tmux list-sessions | awk '{print \$1}' | rg ':' -r '' | fzy); do tmux kill-session -t \$s; done;
@Thomashrb
Thomashrb / gist:3e14dd2b225adf016407ffa91c148a86
Created March 20, 2024 22:57
jump menu to other tmux session
# https://waylonwalker.com/tmux-fzf-session-jump/
bind-key -n M-z display-popup -E "\
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\
sed '/^$/d' |\
fzf --reverse --header jump-to-session --preview 'tmux capture-pane -pt {}' |\
xargs tmux switch-client -t"
@Thomashrb
Thomashrb / kakrc
Created June 8, 2024 16:42 — forked from stoand/kakrc
Use ripgrep instead of grep with kakoune
# Install: https://github.com/BurntSushi/ripgrep#installation
# Use ripgrep instead of grep
set-option global grepcmd 'rg -Hn --no-heading'