Automating Daily Tasks

- 1 min

Summary:

One way to speed up daily routines, or at least make it fun: making command-line shortcuts with aliases.

Inspired by:

How I made my aliases

  1. open ~/.bash_profile with your text editor
  2. in the file, type alias [name]='[whatever command you want to be shortened]'
  3. From this page, I found that you can just use the application name with 'open' -a and a link to whatever you want the application to open. This works with opening Spotify with a Spotify URL, such as that of a playlist! Examples:

alias mcs='open -a "Google Chrome" https://www.youtube.com/user/mycodeschool/playlists'

alias mov_sc='open -a "Spotify" https://open.spotify.com/user/jmichellekim/playlist/5I12pB2PExI0YNbU2tEbhd'

Save bash_profile and try it out:

  1. Reload or open a new tab in terminal
  2. Type just the alias and return

Applications


Michelle Kim

Michelle Kim

Full Stack and Test Automation Engineer

rss facebook twitter github youtube mail spotify instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora