Skip to content

Play music in background when you run a shell command

Notifications You must be signed in to change notification settings

raymondchen625/bash-music

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play music in background when you run a bash command

Installation

  • Copy all the files to your location, e.g. ~/bin/
  • Add a source line to your ~/.profile (macos) or ~/.bash_profile (Linux, need to change to the respective music player if running on Linux):
source ~/bin/bash-music.sh
  • Edit your bash-music.sh, make sure the first two lines have correct paths:

BASH_MUSIC_FILE and BASH_MUSCI_PLAY_SCRIPT

  • Restart a new shell, then you will have aliases to turn the feature on/off:
musicon or 🎶🎶 : on
musicoff or 🔇🔇 : off

About

Play music in background when you run a shell command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages