Set command alias alias timer="cd /Users/u16suzu/workGithub/timer/ && bundle exec ruby main.rb" Usage $ timer 5 # => Alert will be shown after 5 min.