Stack Exchange Network

Stack Exchange network consists of 174 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

Zsh is a shell designed for interactive use, although it is also a powerful scripting language.

0
votes
1answer
58 views

What is this extra column when I run 'ps' command?

I am running Babun with oh-my-zsh on a Windows machine. When I run the ps command without any arguments I get the following output: PID PPID PGID WINPID TTY UID STIME ...
0
votes
0answers
25 views

'ls' output doesn't show color anymore in macOS High Sierra

I use zsh and oh-my-zsh: As shown in the screenshot ls is not showing color output anymore. I set color theme from iTerm2 and set zsh theme (wezm+ theme) from oh-my-zsh. I try to set manually ...
0
votes
1answer
37 views

Korean Filenames are shown like ''$'\355\225\234\352\270\200''.'txt' in iTerm2 on OSX HighSierra

From 2 days ago, when I enter ls in iTerm2(also default terminal app), directories I created are shown like '0. PCR', and Korean filenames are shown as ''$'\355\225\234\352\270\200''.txt'. In ...
3
votes
1answer
21 views

Can zsh RPROMPT disappear when I start typing or after I run a command?

I make use of RPROMPT to show me some "extra" info that I don't want to spend PROMPT space on. However, it gets in the way when I want to cut-and-paste from my terminal window into docs, I have to ...
1
vote
1answer
46 views

Running functions that were declared outside my shell script

Currently my ZSH has some sourced functions, for instance: % declare -f ... a lot of shell functions appears here. I'm currently writing a shell script that will call a specific function from ...
7
votes
1answer
307 views

bash / zsh alias: Can I grab the arguments and use within subshell?

I would like an alias that gives a directory listing in dictionary order with "." files first. It seems that one few ways to accomplish this devoid of writing my own script (which isn't a real problem)...
1
vote
0answers
44 views

Same zsh config acting differently on different machines

I have the following config for zsh that I use on both my laptop and remote machine. I have all my config files put in a git repository that is cloned into ~/.zsh and symlinked into ~. autoload -Uz ...
0
votes
0answers
76 views

What/Where/How is the proper place to configure the PATH environment variable in zsh?

The official zsh manual seems to recommend that you configure the PATH environment variable in zshenv: http://zsh.sourceforge.net/Intro/intro_3.html `.zshenv' is sourced on all invocations of the ...
0
votes
1answer
33 views

Why does `source ~/.aliases` not work in .zshrc?

user@localhost ~ % zsh --version zsh 5.5.1 (x86_64-redhat-linux-gnu) me@localhost ~ % lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: Fedora Description: Fedora ...
3
votes
1answer
160 views

Why does a value '-' (hyphen) in “tag-order” style prevent matching of the “executables” tag even if that tag is explicitly specified?

With the code below, everything works as expected: When I write c and hit the TAB key, I get the appropriate completions in correct order. When I write ./ and hit the TAB key, I get the ...
2
votes
0answers
28 views

How to customize the look of currently selected(highlighted) completion in zsh?

Main question I would like to add powerline characters at the start and at the end of the selected completion, like this: Started the completion menu by inserting a c and pressing the TAB key. ...
4
votes
2answers
19 views

Why does a value '-' (hyphen) in “tag-order” style prevent matching of the “executables” tag even if that tag is explicitly specified?

With the code below, everything works as expected: When I write c and hit the TAB key, I get the appropriate completions in correct order. When I write ./ and hit the TAB key, I get the ...
1
vote
1answer
42 views

zsh+ohmyzsh+powerlevel9k: completions stop working when issuing 'sudo -s'

I am having strange issue with zsh and ohmyzsh(with powerlevel9k theme) on MacOS High Sierra. After installing ohmyzsh when issuing sudo -s getting annoying and strange output of some script. And all ...
3
votes
1answer
390 views

On Ubuntu 18.04, snap apps don't appear in the Dash

I just installed Ubuntu 18.04 and a few snap apps (Slack, Spotify). Snap apps don't show up in the regular "app list" when I search for an app, and I don't understand why. I'm running zsh, so I found ...
0
votes
1answer
123 views

MacOS cannot execute binary file after uninstall zsh

After I open the terminal this text will appear: Last login: Mon Mar 26 17:51:02 on ttys001 -bash: /usr/local/bin/dirname: cannot execute binary file -bash: /usr/local/bin/dirname: cannot execute ...

15 30 50 per page