Skip to content

Instantly share code, notes, and snippets.

View traveaston's full-sized avatar

Trav Easton traveaston

  • Melbourne, Australia
  • 21:08 (UTC +10:00)
View GitHub Profile
@traveaston
traveaston / tab.bash
Last active October 14, 2019 07:14 — forked from vitalybe/tab.bash
Open new iTerm tabs via command line
# tab function has been modified to integrate into basherk / bashrc file.
# dependant function/export taken from basherk https://github.com/traveaston/basherk
# assumes cd lists directory or has some other noisy output which we'd like to avoid here
# ignore commands with leading space
export HISTIGNORE=" *:$HISTIGNORE"
# credit: https://stackoverflow.com/a/17841619
# this solution avoids appending/prepending delimiter to final string
function array_join() {