Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Quick open gnome-terminal profile with fzf -
list_terms (){
uuids=$(gsettings get org.gnome.Terminal.ProfilesList list | tr -d \' | tr -d \[ | tr -d \] | tr -d ,)
for uuid in $(echo $uuids); do
gsettings get org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:${uuid}/ visible-name | tr -d \'
select_term (){
selected="$(list_terms | sort -n | fzf)"
if [ -n "$selected" ]; then
gnome-terminal --window-with-profile="$selected"
zle -N select_term
bindkey ^n select_term
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.