Questions tagged [zsh]
The zsh tag has no usage guidance.
20
questions
0
votes
1
answer
21
views
sh-zsh not catching any errors
emacs 29.1
flycheck 32
test.sh
#!/usr/bin/zsh
echo "test"
ech boo
C-c ! v gives
Syntax checkers for buffer test.sh in sh-mode:
First checker to run:
sh-zsh
- may enable: yes
-...
0
votes
1
answer
150
views
Executable image-dired-cmd-create-thumbnail-program not found on Darwin, macOS
total Emacs newbie here. When I try:
M-x image-dired RET FOLDER RET
The minibuffer shows this error:
Executable image-dired-cmd-create-thumbnail-program not found
When I check the *Messages* buffer ...
1
vote
1
answer
170
views
Run latexmk inside z shell instead of shell
Problem
I am using latexkm to compile .tex documents, and recently I got this error while compiling:
Running `latexmk' on `AF2021_serie5' with ``latexmk -bibtex-cond -pdf -synctex=1 AF2021_serie5''
Rc ...
1
vote
0
answers
217
views
org-babel: zsh sessions use bash
#+BEGIN_SRC zsh :session z1
echo $HOME $0
#+END_SRC
#+RESULTS:
: /Users/evar /bin/bash
I am thinking of trying the workaround outlined here, but shouldn't this work out of the box?
Update: I couldn'...
0
votes
1
answer
76
views
Indentation of one-line zsh for loops
My EMACS (26.3) thinks the line after
for i (`seq 1 10`) echo $i
should be indented. Is this a bug?
4
votes
1
answer
142
views
sh-script-mode: get [[ ... ]] pair expansion to automatically include whitespace?
Say you're coding a shell script and you want to write something like:
if [[ "$out" =~ 'none' ]]; then
return $err
fi
If you're just typing it out and have any of the various electric/pair ...
3
votes
2
answers
178
views
Displaying a second buffer with a shell?
I would like to have a text buffer for writing to a file on the left side and a shell (zsh) on the right side for interacting with a REPL. Is that possible?
At the moment I realize that with tmux ...
2
votes
0
answers
1k
views
Multi-term and zsh
I thinkk that finally, I managed to get a "nice" multi-term working with emacs on MAC-OSX: this is my configuration:
On Emacs:
;;; my-multi-term.el --- multi-term configuration -*- lexical-binding: ...
0
votes
1
answer
1k
views
Open file in existing GUI Emacs from shell
I would like to set the shell EDITOR to use the existing running instance of GUI Emacs.
On macOS I can type open -a Emacs file to edit file that way. But how would EDITOR look to work that way?
What ...
1
vote
1
answer
682
views
Use emacsclient as $EDITOR for zsh edit-command-line
I have emacsclient set as my $EDITOR. Yet, when I invoke the zsh function edit-command-line (C-x C-e) from Terminal I briefly see the Emacs frame open but then it closes immediately. How can I use ...
1
vote
1
answer
3k
views
Emacs incompatible with oh-my-zsh?
I'm noticing something really odd in my ansi-term windows on my new Mac, see below:
I am using:
GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build ...
0
votes
1
answer
382
views
Setting Exec-Path When Using Zsh and Tmux
I am using Emacs 25.2 with Zsh; and I have added the following to my init.el file to set both the Path and exec-path.
;; Set shell path
(defun set-shell-path ()
(let ((shell-path (shell-command-to-...
5
votes
1
answer
4k
views
Package `exec-path-from-shell` isn't setting PATH variables from `.zshenv` on MacOS
I'm running a GUI Emacs compiled from the master git branch on MacOS El Capitan. I'm using the package exec-path-from-shell to set several environment variables I have configured in my ~/.zshenv file. ...
3
votes
0
answers
685
views
Terminal Buffer: error in process filter: Invalid face: unspecified
On Fedora 25 with GNU Emacs 25.1.90 (which I am running via an AppImage, you can download it from here and test out your theories as to what's wrong if you would like, remember AppImages will only ...
1
vote
1
answer
148
views
emacs theme changes when i moved to zsh from bash
I recently shifted form bash to zsh and also installed ohmyz. Since then my emacs theme doesn't work.
the one on the Left is how it looks in bash. On the right, when run on zsh its different.
Thanks,....
0
votes
1
answer
314
views
zsh in multi-term
I run zsh in multi-term. M-p and M-n allow me to jump through the input history.
Is there a way to make M-p and M-n behave like up-line-or-beginning-search and down-line-or-beginning-search (jumping ...
2
votes
1
answer
173
views
zsh expansion modifiers are treated as comments
zsh has a ton of syntax. In particular, the # character serves a bunch of different roles. Here are two that are problematic:
Prefix globbing flags
(#b)(*).c
This finds all files that end in .c and ...
2
votes
1
answer
755
views
How can i use a different shell in Emacs Shell?
I am currently using Zsh in my regular terminal app on my Mac OS X. However, it's heavily customized and colors don't appear properly inside Emacs. So I am thinking, I should probably use shell-mode ...
2
votes
1
answer
435
views
TRAMP doesn't know some of the remote commands
I'm using my local emacs to edit files on a remote cluster. Therefore I added:
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
to my remote .zshrc and I can edit ...
6
votes
2
answers
6k
views
weird characters in shell mode with zsh
I recently switched to zsh (with oh-my-zsh) as my primary shell, but running the shell from emacs results in some strange (for lack of a better word) "residural" characters; however changing to bash ...