Commit Graph

8 Commits

Author SHA1 Message Date
mnv 23027ec890
coffee.plugin.zsh: improve CoffeeScript compilation utilities
Features:

- Add check for CoffeeScript compiler installation
- Add input validation for all functions
- Add proper error messages with usage information
- Add clipboard operation feedback

Improvements:

- Replace aliases with proper functions for better control
- Use local variables to prevent namespace pollution
- Add proper quoting and option handling
- Add error output redirection
- Export functions for subshell availability

The previous implementation lacked error checking and could fail silently
in various scenarios. This update makes the functions more robust and
user-friendly while maintaining the original functionality.
2024-10-24 18:30:00 +05:30
Cooper Maruyama 9264d75d5d Fix typo.
* `cfp` alias was referencing an old version of the `cf` command which
no longer exists. This has been updated to reference a valid command.
2015-10-21 17:08:20 +02:00
Andrew Janke e4fdb08365 Merge branch 'master' into copyfile-portability 2015-09-28 08:52:03 -04:00
Andrew Janke 5c8b0cc0c1 Add clipcopy() and clippaste() generic cross-platform CLI clipboard functions.
Change copydir, copyfile, and coffee plugins to use them, instead of the Mac-only `pbcopy` command.
2015-08-18 03:49:51 -04:00
Takumi IINO 1e8196de82 passing the first argument with double quote 2015-07-08 11:16:44 +09:00
Cooper Maruyama 24552f0225 Add readme and add new alias cfpc: paste+compile+copy 2015-05-02 07:14:21 -07:00
Cooper Maruyama a315ddc075 typofix 2015-05-01 01:37:55 -07:00
Cooper Maruyama 8e8cdc0502 Add coffeescript aliases: cf, cfc, cfp
cf: compile and show output
cfc: compile & copy
cfp: compile from pasteboard & print
2015-05-01 01:34:20 -07:00