The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [zsh]

Zsh or Z Shell is a Unix shell

Filter by
Sorted by
Tagged with
1
vote
3answers
278 views

macOS Catalina still uses bash as the default shell

I'm on the latest public beta of macOS Catalina and it's supposed to use zsh as the default shell and it even shows that it is pointing to zsh in the users settings but whenever I open a new terminal ...
1
vote
2answers
99 views

How can I debug a series of piped commands in zsh?

The command ioreg -lw0 | grep \"EDID\" | sed "/[^<]*</s///" | xxd -p -r | strings -6 is not giving any result. Can any one help. I got this command from an article that maintains (I ...
1
vote
1answer
2k views

Unknown error message in Terminal

When I open the Terminal I keep getting this message, which I suppose is some error: /Users/sinisasasic/.zshrc:export:48: not valid in this context: Support/GoodSync:/usr/bin:/bin:/usr/sbin:/...
1
vote
2answers
3k views

How do I copy text from vi?

I installed zsh, and I'm using vi. I want to copy a line from vi to somewhere else. How may I do this?
1
vote
1answer
82 views

I switched to Catalina and enabled ZSH now my home/end key do not work in terminal

I switched to ZSH from BASH as per the upgrade in Catalina and all is well except my home/end keys no longer work. This can be really annoying trying to move my cursor over super far to the left ...
1
vote
2answers
176 views

Why does rm in zsh abort?

I have a number of files: > $ ls FleurInputSchema.xsd inp.xml out usage.json fort.77 juDFT_times.json out.xml and I would like to delete some of ...
1
vote
1answer
72 views

LSCOLORS and CLICOLOR active by default and unset

Running zsh out of the box ls -G produced a colored list with the default colored values. But when I echo, both $LSCOLORS and $CLICOLOR, I receive an empty response. Reviewing printenv or set also do ...
1
vote
1answer
558 views

Error with Oh My ZSH themes, ZSH_THEME="random

I get the following message after installing Oh My ZSH and changing ZSH_THEME="robbyrussel" to ZSH_THEME="random" in .zshrc. Users/me/.oh-my-zsh/oh-my-zsh.sh:source:110: no such file or directory:...
1
vote
1answer
29 views

Command line issues

I'm trying to execute two commands in a single line: pkill "something" && runsomething when executing each command separately, both work. When executed together with "&&", only the ...
1
vote
2answers
118 views

ZSH started printed env on startup

I started XTerm today and for some reason ZSH is printing what looks like env when my shell starts up. I am just wondering if there is a way to track down what is doing this so I can disable it. Below ...
1
vote
1answer
172 views

Write a function in zshrc that can take a parameter and can handle flags

I usually need a chrome page opened to localhost:3000 when I am developing. So, I just run the following cmd: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app=http://localhost:3000 ...
1
vote
1answer
699 views

exporting LSCOLORS in .zshrc not working as expected

In my .zshrc file I am loading my color scheme using the below command: export CLICOLOR=1 export LSCOLORS=GxFxCxDxBxegedabagaced But when I load my terminal I get another color scheme. I am not sure ...
1
vote
1answer
2k views

iTerm2 does not show username, machine name, time

On my new mac machine, I could not do autocomplete for Git when I hit Tab. So I thought to modify the terminal and found certain things on this link. I may have messed when I installed iTerm2, Oh-My-...
1
vote
2answers
5k views

Powerline patched font not working on Terminal.app

I am on Mac OS X 10.10.2 (14C2513). I am using Inconsolata patched font from here. But I also tried to patch the font myself. The result is the following: I am able to see the glyphs but zsh (see the ...
1
vote
1answer
2k 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
534 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
80 views

Which version of ZSH is installed in macOS Catalina?

I am required to write a script on Linux while still supporting macOS. I am using ZSH. macOS Catalina has ZSH enabled by default, but the feature I am building has a version dependency on the ZSH ...
1
vote
1answer
108 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
37 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
95 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
4k 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
937 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
57 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
669 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
513 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
136 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
77 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
3k 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
132 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
280 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
67 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
3answers
651 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
568 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
77 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
519 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
68 views

Problem with snippets in Zsh

I recently changed my shell from bash to zsh. I have lots of snippets (Alfred, Dash...) for terminal use that ends with a line break. With bash that snippets works fine, I meant, paste the command and ...
0
votes
1answer
142 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
210 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
407 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
387 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
855 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
248 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
164 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
231 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
37 views

Resetting /usr/bin

So I was installing python3, pip, and a few other applications through Homebrew when I first got my Mac. I realized I was doing all this in /usr/bin and not /usr/local/bin, and I wanted to just to ...
0
votes
0answers
51 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
22 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
158 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
130 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
101 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 ...