Skip to content

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

 
 
 

Contributors

Languages