Skip to content
/ snv Public

Switch eNVironment (a menu to change distrobox containers)

License

Notifications You must be signed in to change notification settings

frap129/snv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snv (Switch eNVironment)

snv is a script that lets you choose a shell environment from a list of your distrobox containers + your host.

If snv is installed somewhere in your home directory and is in your path, it works both on host and in a container.

Preview

The command used to generate the preview is customizable using environment variables.

Variable Default Value
HOST_PREV cat /etc/hostname
ENV_PREV distrobox list | head -n 1 && distrobox list | grep ' {}'"

As an example, to generate a simple preview for the host with neofetch, export

HOST_PREV="neofetch --backend off --color_blocks off"

Dependencies:

  • distrobox
  • fzf

Setup completions

Completions for BASH and ZSH are included in snv. Simply source ~/.local/bin/snv (or whatever path you installed it to) in your ~/.bashrc or ~/.zshrc respevtively

About

Switch eNVironment (a menu to change distrobox containers)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages