Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Posts tagged zsh

This tag doesn't have any usage information yet.

This tag doesn't have a detailed wiki yet.

66%
+2 −0
Q&A Show a timestamp on the right side of prompt when executing a command in ZSH

How to configure ZSH shell to print a timestamp on the right hand side of the prompt line when executing a command? I don't want to display the time prior to executing a command. Here's about how ...

1 answer  ·  posted 3mo ago by Iizuki‭  ·  last activity 3mo ago by Iizuki‭

Question zsh
50%
+0 −0
Q&A How to list the first x files in each directory

MWE With the following tree: l1 └── l2 ├── d0 │   ├── f0 │   ├── f1 │   ├── f2 │   ├── f3 │   ├── f4 │   └── f5 ├── d1 │   ├── f0 │   ├── f1 ...

3 answers  ·  posted 6mo ago by mcp‭  ·  last activity 6mo ago by matthewsnyder‭

Question bash zsh ls find cp
60%
+1 −0
Q&A Vim key bindings not working in terminal python interpreter

MWE To reproduce: Add bindkey -v to your ~/.zshrc. Invoke python interpreter: python. Type something into the prompt without hitting ENTER: this = "this" + "that". Press ESC and try any vim ...

1 answer  ·  posted 1y ago by mcp‭  ·  edited 6mo ago by mcp‭

Question zsh python
71%
+3 −0
Q&A Treat underscores as word boundaries in terminal using vim mode

Question How do you specify underscores as Vim word boundaries when using vim mode in either bash or zsh? MWE w on this_word should place the cursor on the underscore. A second w should place th...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 7mo ago by r~~‭

Question bash zsh vim
77%
+5 −0
Q&A Copy to clipboard from terminal with Vim bindings

Question How do I copy to clipboard from terminal with yy, assuming it's configured to use Vim bindings? I am using zsh with bindkey -v. MWE Enter something on the commandline (without pressi...

2 answers  ·  posted 1y ago by mcp‭  ·  last activity 7mo ago by Mithical‭

81%
+7 −0
Q&A How to get number of files in directory

How do you find out the number of files in a directory from the command line?

4 answers  ·  posted 1y ago by mcp‭  ·  last activity 10mo ago by AdminBee‭

Question bash zsh ls
60%
+1 −0
Q&A Simplest way to change cursor to indicate vim mode

Question What is the simplest way to change the cursor to indicate vim mode when using zsh? Notes I want it to show as a vertical line in insert mode and a block in normal mode. This is the cur...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 12mo ago by GoldenGold‭

Question zsh vim terminal cursor
60%
+1 −0
Q&A Running `bashcompinit` in zsh to enable use of bash completion specifications gives "command not found"

I'd like to use the answers in this post while using zsh: compgen -c # will list all the commands you could run. compgen -a # will list all the aliases you could run. compgen -b # will list a...

0 answers  ·  posted 1y ago by mcp‭  ·  edited 1y ago by Canina‭

Question zsh
66%
+2 −0
Q&A How to make vi-mode bindings in terminal copy to clipboard

If I want to yank my last command I can UP yy, but this does not copy to the system clipboard. How do I configure my terminal to copy to the system clipboard so I can paste into other programs? ...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by deleted user

Question bash zsh vi-mode
80%
+6 −0
Q&A A shell script that can run under different shells

I have a shell script with a syntax compatible to both bash and zsh, except for a section that has zsh specific syntax that throws syntax errors if sourced from bash. Is there an easy way to escap...

2 answers  ·  posted 2y ago by 4015.alt‭  ·  last activity 2y ago by mjy‭