glab(1)

πŸ’… glab-config-edit β€” like, the glab(1) manual page, but make it make sense πŸŽ€

okay bestie, so this is a page from the glab(1) manual and it's specifically about glab config edit β€” the little command that pops open your glab config file in an editor. it's giving "small but mighty" ngl ✨


🌸 NAME 🌸

glab-config-edit β€” opens the glab configuration file. that's it. that's the whole job. iconic. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

glab config edit [flags]

πŸ‘‘ DESCRIPTION πŸ‘‘

so when you run this, glab has to figure out which editor to open your config in. and it's not random β€” there's a whole little priority list it goes through, in this exact order, no cap:

  1. the glab_editor field in the configuration file πŸ₯‡
  2. the VISUAL environment variable
  3. the EDITOR environment variable

like, it checks them top to bottom and the first one it finds wins. main character energy for whoever's at #1, honestly. 🫢


✨ OPTIONS ✨

  • -l, --local[=false] β€” opens the .git/glab-cli/config.yml file instead of the global ~/.config/glab-cli/config.yml file. so it's like "hey, keep it local bestie" 🏠 vs. the global one which is your whole-world config.

πŸ’œ OPTIONS INHERITED FROM PARENT COMMANDS πŸ’œ

  • -h, --help[=false] β€” shows help for this command. the classic. the moment. when you're lost, press it. πŸ™ˆ

πŸ”₯ EXAMPLE πŸ”₯

the receipts, literally verbatim:

# Open the configuration file with the default editor
glab config edit

# Open the configuration file with vim
EDITOR=vim glab config edit

# Set vim to be used for all future 'glab config edit' invocations
glab config set editor vim
glab config edit

# Open the local configuration file with the default editor
glab config edit -l

see that third one? that's the permanent glow-up β€” set vim once and every future glab config edit just knows. obsessed. 🌈


🧚 SEE ALSO 🧚


little reminder: --local opens the repo-level file at .git/glab-cli/config.yml, while the default is the global ~/.config/glab-cli/config.yml. don't mix 'em up, bestie 🫢

and that's the page!! ✨ auto generated by spf13/cobra, dated Nov 2026, and yeah β€” this was glab(1). slay, you read the whole thing πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from