Questions tagged [zsh]

The tag has no usage guidance.

4
votes
1answer
66 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 ...
2
votes
2answers
71 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
0answers
469 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
1answer
364 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
1answer
178 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
1answer
653 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
1answer
205 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-...
1
vote
1answer
2k 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
0answers
419 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
1answer
90 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
1answer
233 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
1answer
114 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
1answer
168 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
1answer
262 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 ...
1
vote
2answers
3k 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 ...