Navigation Menu

Skip to content

Commit

Permalink
Sanity check for scp. Disabled for now.
Browse files Browse the repository at this point in the history
Need to figure out a way to get shell-command output to show in the
shell rather than just echoing return value.
  • Loading branch information
technomancy committed Dec 1, 2010
1 parent 4292b49 commit 70daaf6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions starter-kit-eshell.el
Expand Up @@ -35,6 +35,13 @@
(defun eshell/find (dir &rest opts)
(find-dired dir (mapconcat 'identity opts " ")))

;; (defun eshell/scp (&rest args)
;; "scp: now without colon-omitting annoyance!"
;; (when (null (remove-if-not (lambda (arg) (string-match ":" arg))
;; args))
;; (error "Surely you meant to add a colon in there somewhere?"))
;; (shell-command (mapconcat 'identity (cons "scp" args) " ")))

;; Port features from
;; http://blog.peepcode.com/tutorials/2009/shell-method-missing/shell_method_missing.rb
;; * cloning git repos, github repos
Expand Down

0 comments on commit 70daaf6

Please sign in to comment.