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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Directory paths should end with a trailing slash.
The docstring in C-hv
default-directoryRET is explicit about that, in fact.Fixing that ought to fix your problem.
See also:
cdfunction.file-name-as-directoryfunction.