Skip to content

Instantly share code, notes, and snippets.

@LinuxIsCool
Created May 28, 2023 04:28
Show Gist options
  • Select an option

  • Save LinuxIsCool/2e62f0b7de645afe520d749576277b1b to your computer and use it in GitHub Desktop.

Select an option

Save LinuxIsCool/2e62f0b7de645afe520d749576277b1b to your computer and use it in GitHub Desktop.
Exploring `$XDG_` with `set | fzf ` in fish shell

Thoughts on XDG Fish and FZF:

The DotFiles Can be Installed Using Stow as seen in stow.sh.

Or You can symlink or copy specific files into your ~/.config/ and ~/.local/ and ~/ directories.

That can be configured with $XDG_ variables.

In fish shell, you can explore your $XDG_ settings with fzf.

set | fzf

Output on my machine:

  XDG_DATA_DIRS /home/ygg/.local/share/flatpak/exports/share:/var/lib/flatpa…
  XDG_SESSION_DESKTOP pop-wayland
  XDG_RUNTIME_DIR /run/user/1000
  XDG_CURRENT_DESKTOP pop:GNOME
  XDG_SESSION_TYPE wayland
  XDG_SESSION_CLASS user
> XDG_MENU_PREFIX gnome-
  10/174
> XDG
 🍄 ygg@lemur  ✨ 0         

The last line above is output from my tmux statusline. The lines above that are outputs from set | fzf in my fish shell then typing XDG.

The above is just fun note for exploring your environment variables using fzf fuzzy finder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment