my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
386 B

3 years ago
  1. #
  2. # If the tt command is called without an argument, launch Textastic
  3. # If tt is passed a directory, cd to it and open it in Textastic
  4. # If tt is passed a file, open it in Textastic
  5. #
  6. function tt() {
  7. if [[ -z "$1" ]]
  8. then
  9. open -a "textastic.app"
  10. else
  11. open -a "textastic.app" "$1"
  12. if [[ -d "$1" ]]
  13. then
  14. cd "$1"
  15. fi
  16. fi
  17. }