Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [zsh]

Zsh or Z Shell is a Unix shell

1
vote
1answer
1k views

Terminal git:master after oh-my-zshell installation

I just installed oh-my-zshell. And my terminal looks like the image now. What is git master there? I installed oh-my-zshell on other macs, the look is not like that. I am on the root here BTW. Can ...
1
vote
1answer
440 views

How do I disable the “theme loaded” message in zsh

Im using zsh as my default shell and loving it. I have random themes enabled, and whenever I load a theme it displays a message on my terminal. How do I disable this message? Im talking about [oh-...
1
vote
1answer
29 views

how to reset $SHELL variables in root from user space

I've switched my bash to zsh in root using chsh -s /usr/bin/zsh root After when I change back to bash, I type the wrong path: chsh -s /usr/bin/bash root Now I cannot enter root and I get this ...
1
vote
1answer
72 views

macOS Terminal.app can't split with Command + D

I installed zsh. When I press Command + D in iTerm2, it could split normally. But when I return to using Terminal.app, I use bash or zsh, it can't split with Command + D, it changed like the ...
1
vote
1answer
33 views

zsh array from variable does not work

I using macos 10.14.2 (18C54) with zsh (latest version I couldn't find any versioning with zsh). If I create an array from a string it works. But If i use a variable containing the string split does ...
1
vote
1answer
252 views

How do you change colour scheme between *panes* inside iTerm2 + oh-my-zsh?

I have seen a lot of solutions that allow changing of tab colour upon remote accessing into a server (see for example: https://gist.github.com/wadey/1140259 and many more). What I want is to change ...
1
vote
1answer
82 views

macOS terminal: quick way to edit command options after bash/zsh autocomplete

The issue I use autocomplete from history a lot whether that's with up-arrow or typing the first few letters and completing the whole command including all arguments (options and others) with right-...
1
vote
1answer
3k views

How can I change my font and coloring in Oh My Zsh to match a theme I want

I'm using Oh My Zsh and I was using the "Agnoster" theme for a while, but now I want to switch to "Amuse". So I went into my ~/.zshrc file and changed the theme config line to ZSH_THEME=amuse This ...
1
vote
1answer
16k views

How can I get zsh to show the current path in the prompt?

I am not able to see path of my current directory or even username in terminal while using zsh. I was able to see it until few days back. Now it just shows blank. I tried uninstalling oh-my-zsh but it ...
1
vote
1answer
832 views

tmux always modify my zsh PATH

I'd like to use tmux inside my iTerm2. and I have the following in my ~/.tmux.conf file. set-option -g default-shell /bin/zsh set-option -g default-command "/bin/zsh -c 'which reattach-to-user-...
1
vote
1answer
56 views

How to use find to list all files except those under .git?

I want to find a list of file (no directories) excluding those under .git I am trying out some suggested find syntax to achieve as suggested in this SO question: https://superuser.com/questions/...
1
vote
1answer
626 views

Wierd character in zsh

I have problem with zsh at command line for non English language characters but after enter key the language show the right word. ~ ❯ สว<0e31>สด<0e35> สวัสดี zsh: command not found: ...
1
vote
1answer
478 views

XQuartz is not starting from within tmux

I'm using the standard apple terminal with zsh as my default shell. In my ~/.zprofile (equivalent of .profile) I have the following line: [[ $TERM != "screen" ]] && exec tmux This basically ...
1
vote
0answers
24 views

Separate zsh histories after restart (iTerm2)

I am running iTerm2 (v 3.2.9) and zsh (v 5.7.1). I normally have 3-4 iTerm tabs opened at the same time and each tab has its own history thanks to the following settings in my .zshrc file SAVEHIST=...
1
vote
0answers
44 views

How to bind Option-Delete to backward-delete-word in zsh vi mode in tmux and alacritty terminal

I use alacritty and currently, I have these key binding key_bindings: # (macOS only) - { key: N, mods: Command, action: SpawnNewInstance } - { key: F, mods: Command, ...
1
vote
1answer
74 views

Homebrew install package which then won't run

I've installed homebrew and used it successfully for installing and using packages before. But when I installed a packaged called "shpotify" that can be used to control spotify from the command line, ...
1
vote
1answer
2k views

changing user prompt terminal

I am new to using macs. I was using the bash shell, but recently tried switching to using iTerm2 and zsh. Originally, it looked the way I wanted, but something changed and reformatted my shell. ...
1
vote
3answers
131 views

open <TAB> opening finder window

I use zsh. For some reason, with zsh, when I type open <TAB> (which should list the files to autocompletion), it opens Finder in the current folder. I don't have anything aliased for that. I ...
1
vote
0answers
255 views

Running “irb” changes my zsh to bash on iTerm2

I'm running OSX 10.9.4, and my default shell is set to z shell. I was just working out my installation of Ruby and RVM and playing around with irb when I suddenly notice that my window title says "...
1
vote
1answer
64 views

zsh stopped parsing ~/.zshrc

I'm running the latest OSX on an MBP from '11. I've installed the latest zsh from macports and all of a sudden it stopped parsing the .zsh. Whenever I login I need to source ~/.zshrc before any ...
0
votes
2answers
296 views

After uninstalling Oh-My-Zsh, my terminal is messed up

This is not a duplicate question. I've already looked at the answers for Uninstalled zsh, terminal gone weird, and although I changed the settings, it still defaults back to zsh title, with a ...
0
votes
3answers
547 views

How to caffeinate a function on CLI?

Mac's caffeinate tool accepts the name of a utility: caffeinate sleep 1, for instance. Is there any way for it to accept a function as well? For example: function mysleep { sleep 2 } caffeinate ...
0
votes
1answer
530 views

Weird null characters ^@ output on iTerm 2 / zsh when a command is running

When I m using iTerm 2 (with zsh), and a command is running at the prompt, every minute or so ^@ (NULL character) got displayed on the terminal. Below is an example, using socat, but other commands ...
0
votes
1answer
67 views

How to get local directory names into terminal window titles?

The title of my terminal window is: Terminal -- bash -- 130x39 This is how I see them listed in Terminal->Window and it is very hard to know which one is which. When I use multiple terminals, the ...
0
votes
2answers
440 views

File contents remains in terminal after exiting Vim?

I'm using the stock terminal with zsh and vim. After I exit vim, the file contents remains in the terminal. Ideally, only the previous history would be in the terminal when I exit vim (such as the ...
0
votes
1answer
94 views

What am I doing that causes zsh to silently change to vi mode?

I'm a software developer, and as such I frequently use Terminal.app. I've been using it for years. At some point in the last week or two, I started encountering this problem somewhat frequently; I've ...
0
votes
1answer
181 views

Hotkeys don't work in zsh when $TERM is set to screen-256color

As per various other discussions I bound opt+<- to 0x1b 0x62and opt+-> to 0x1b 0x66. This works great in zsh, but not in tmux. In tmux opt+<- does jump backwords per word, but also seems to do ...
0
votes
1answer
300 views

Terminal/ZSH Problems & Permission problems

I downloaded something out of the Internet and executed it, which might could have malware. After that I deleted all of that and i opened my Terminal and it gave me this error: /Users/flawn/.zshrc:.:...
0
votes
2answers
330 views

Run zsh alias via automator?

I am using zsh with oh-my-zsh in iTerm on macOS. There are some aliases defined in my .zshrc I use often, like this: deploy(){ cd ~/Path/To/My/Project; build ...; rsync ...; } To execute this, I ...
0
votes
1answer
734 views

iterm2 tab and window titles remove current process information

I've found tons of places that describe how to get the window title and tab titles to reflect the current directory (relative to my home directory). Here is what is in my .zshrc: precmd() { # sets ...
0
votes
1answer
215 views

autocomplete in zsh after `npm run tdd` command

I'm using OS X 10.10.3, I have installed zsh. And every time when I want to run a specific test I configured in package.json to execute npm run tdd followed by the test file. In linux systems if I ...
0
votes
1answer
162 views

Tab completion in terminal with alias

I'm running a zsh terminal under Yosemite and have defined a simple alias to place files in Yoink: $ alias yoink='open -a Yoink' $ yoink my-file-to-yoink.txt This works great but for some unknown ...
0
votes
1answer
227 views

How to manually determine version control metadata for Finder?

I have a Scripts folder where I keep Automator actions, Applescripts, and shell scripts. Automator scripts are automatically assigned a version of 1.1.1 it seems. When I make revisions to any of these ...
0
votes
0answers
50 views

Find commande doesn't list existing file

Ok so! I search the file latexindent. The command typpe latexindent given me latexindent is /Library/TeX/texbin/latexindent. I execute find /Library/TeX/texbin/ -name "*latexindent*" but I don't have ...
0
votes
0answers
21 views

Rename .app and using the new name with open -a

I want to change the name of Visual Studio Code to vscode for using the command open -a vscode. Any idea how?
0
votes
1answer
120 views

Randomize MAC Address Using Platypus [duplicate]

I am running the following script in Platypus but the MAC address does not change: #!/bin/zsh IF=en7 mac=`ifconfig $IF | awk '/ether/{print $2}'` echo "$IF mac before change=$mac" randmac=`openssl ...
0
votes
0answers
104 views

Terminal and iTerm appear to be partially opening in zsh

I recently installed Julia on my iMac running High Sierra. Julia seems to want to run in the Z-shell whereas I normally use bash. I haven't run Julia today but my Term2 windows are screwed up since ...
0
votes
1answer
71 views

What is the path to the global directory for binary files in MacOS?

What is the path to the global directory (for example: /usr/local/bin etc.) for binary files in macOS? The problem is that I can run the command from another user. With this command I want to start ...
0
votes
0answers
517 views

Go2shell don't work with zsh

I recently switched to zsh from bash, and Go2Shell don't work with zsh. When I click the Go2Shell icon from Finder, the iTerm window opened but the directory is the last dir in iTerm instead of the ...
0
votes
0answers
425 views

ZSH Slow - Calls sh and env multiple times on every command

My ZSH (tried both brew and included version) is slow. Even on calling simple ls command, it takes about 500ms to complete. And I noticed that on the title bar, it says sh and env couple of times ...
-1
votes
1answer
412 views

Stop powerline hovering above bottom of full-screen terminal

When in full-screen mode ("full-full", not just maximised with menu bar still showing) Powerline inside Terminal.app hovers slightly (about it's own height) above the bottom of the screen. Does ...