Skip to content

Instantly share code, notes, and snippets.

@tommystanton
Created July 14, 2015 01:34
Show Gist options
  • Select an option

  • Save tommystanton/2c985d23f9ed054c7218 to your computer and use it in GitHub Desktop.

Select an option

Save tommystanton/2c985d23f9ed054c7218 to your computer and use it in GitHub Desktop.
Use a dirs stack element as an argument on the command-line

Using the dirs (bash-builtins(7)) stack to create a playlist for Audacious of two Ubiktune albums I recently purchased off of Bandcamp:

$ dirs -v
 0  ~/Music
 1  ~/Music/Zackery_Wilson/SNESQUE
 2  ~/Music/Joshua_Morse/Waveform_4
$ audacious $(dirs -l +2) $(dirs -l +1) &
@tommystanton
Copy link
Author

First enqueue Waveform 4, then SNESQUE.

That's the order I have them burned on CD, after all. 😉

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