Reputation: 33784
Here is my try :
#!/Usr/bin/emacs --script
(let ((default-directory "/home/vision"))
(shell-command "git pull;")
but it doesn't work properly, I need to git pull in /home/vision directory and make some more actions there. How to do it?
Upvotes: 1
Views: 67
Reputation: 73344
Directory paths should end with a trailing slash.
The docstring in C-hv default-directory
RET is explicit about that, in fact.
Fixing that ought to fix your problem.
See also:
cd
function.file-name-as-directory
function.Upvotes: 3