📖 Usage

Commands, examples, and shell integration

pal terminal demo
Commands
CommandDescription
pal listList all 420 available palette names, one per line
pal set <name>Apply the palette to the current terminal immediately
pal preview <name>Show a 16-color swatch without changing your palette
pal randomPick and apply a random palette from all 420
pal export <name>Print a printf shell one-liner for .bashrc
pal <name>Shorthand — same as pal set <name>
pal -hShow help
Examples
apply a palette
$ pal dracula-dark
$ pal nord
$ pal set monokai-dark
preview without applying
$ pal preview rose-pine-dark

  palette: rose-pine-dark

                  
                  

  fg:#E0DEF4  bg:#191724  cursor:#E0DEF4
random palette
$ pal random
Applied: gotham-dark

$ pal random
Applied: base16-monokai
search palettes
$ pal list | grep gruvbox
base16-gruvbox-hard
base16-gruvbox-medium
base16-gruvbox-pale
base16-gruvbox-soft
gruvbox
gruvbox-dark
gruvbox-light

$ pal list | grep -c ""
420
📄 Shell Export
Export mode lets you apply a palette without having the pal binary installed. The output is a self-contained printf one-liner that works in any POSIX shell.
export to .bashrc / .zshrc
# print the shell code
$ pal export dracula-dark
printf '\033]4;0;#44475A\033\\\033]4;1;#FF5555\033\\ ...'

# append directly to your shell profile
$ echo "$(pal export dracula-dark)" >> ~/.bashrc

# now every new terminal opens with dracula-dark
# no pal binary required at runtime
💡 Tips
shell alias for fast switching
# add to ~/.bashrc or ~/.zshrc
alias theme='pal set'
alias rtheme='pal random'

# then
$ theme nord
$ rtheme