Questions tagged [zsh]

20 questions
6
votes
2 answers

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 removes these characters: ➜ ~ ^[[?2004h bash …
Electric Coffee
  • 163
  • 1
  • 5
4
votes
1 answer

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 modules active, you'll likely get something like if…
Trey
  • 865
  • 5
  • 20
4
votes
1 answer

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. However, none of them inherited in Emacs. GOPATH…
idclark
  • 141
  • 1
  • 3
3
votes
2 answers

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 showing emacs in the left pane. But I wonder how this…
Raffael
  • 215
  • 2
  • 6
3
votes
0 answers

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 work on Linux though) with a config file found here…
Josh Pinto
  • 623
  • 10
  • 19
2
votes
0 answers

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: t; -*- ;;; Commentary: ;;; this is the multi-term…
anquegi
  • 739
  • 5
  • 21
2
votes
1 answer

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 captures their basenames using backreferences…
PythonNut
  • 10,243
  • 2
  • 29
  • 75
2
votes
1 answer

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 with a different zshrc or use "Bash" as the…
2
votes
1 answer

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 and browse files without any problems. I can even compile (M-x compile)…
Stein
  • 551
  • 1
  • 5
  • 11
1
vote
1 answer

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 files read: NONE Latexmk: This is Latexmk,…
1
vote
0 answers

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't get that workaround to work. I tried: (require…
HappyFace
  • 751
  • 4
  • 16
1
vote
1 answer

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 emacsclient as the $EDITOR for…
Adam Simpson
  • 111
  • 5
1
vote
1 answer

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 16G1036)) of 2017-11-10 which I installed using brew…
Amelio Vazquez-Reina
  • 5,157
  • 4
  • 32
  • 47
1
vote
1 answer

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,.
arvindh
  • 155
  • 4
0
votes
1 answer

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 - predicate: t - executable: Found at…
1
2