zsh Questions

6

Solved

I am trying to merge two arrays into one in a zipper like fashion. I have difficulty to make that happen. array1=(one three five seven) array2=(two four six eight) I have tried with nested for-l...
Ponton asked 9/6, 2015 at 0:46

7

I have a fresh mac in front of me, I installed homebrew (just fine), and oh my zsh (just fine). I'm trying to install autojump which is a intelligent database of directories. For example, you can ...
Mirtamirth asked 18/1, 2013 at 23:43

8

Solved

I read from stdin lines which contain fields. The field delimiter is a semicolon. There are no specific quoting characters in the input (i.e. the fields can't contain themselves semicolons or newli...
Intermixture asked 26/8, 2022 at 12:2

5

Solved

I am trying to move to zsh from bash. I copied my .bashrc directly to my .zshrc, and it caused a lot of errors when I tried to use bash again. How can you export your .bashrc to .zshrc?
Zwart asked 19/4, 2009 at 1:7

2

How do you pass arguments to custom zsh functions? For instance: function kill_port_proc(port) { lsof -i tcp:<port interpolated here>| grep LISTEN | awk '{print $2}' } I'm seeing so many ...
zsh
Kanazawa asked 12/3, 2019 at 17:47

5

I recently switched from bash to zsh (MacOS). I haven't used pipenv since the switch. Now when I run any pipenv command I get the following error: $ pipenv install zsh: /usr/local/bin/pipenv: bad i...
Oppen asked 20/8, 2020 at 16:0

4

I have a little function that allows me to activate my python virtual environment, which for different repos, is sometimes hidden (.venv) and sometimes not (venv). I'm having trouble suppressing st...
zsh
Dasteel asked 20/12, 2020 at 12:56

2

Solved

I install MongoDB by using homebrew and set the path within .zshrc: export path=/usr/local/Cellar/mongodb/3.4.6/bin:$PATH But when I open the iTerm2, the stdout give me this: Last login: Sat Jul 22...
Madonna asked 22/7, 2017 at 13:9

2

Solved

Is it possible to change the location of .zcompdump and .zhistory files generated by ZSH? They are polluting my Home Directory. One possible solution I found was changing the value of $ZDOTDIR to...
zsh
Needless asked 11/12, 2017 at 1:7

4

I'm using iTerm2 on Mac OSX 10.8 with an xterm key binding and zsh. I'd like zsh to use option left arrow and option right arrow to do the standard Mac bindings of left and right word. If I hit c...
Babbling asked 23/11, 2013 at 21:15

4

i am a vim user and got used to the gf command, which opens the file under the cursor. Now i wanted to ask, if there is something like that for tmux. I can navigate through a tmux-pane and it hap...
Roslyn asked 15/2, 2016 at 8:7

5

Solved

I daily find myself doing... $ kubectl --context=foo get pods < copy text manually > $ kubectl --context=foo logs dep1-12345678-10101 I would like to cycle through matching resources with...
Liegeman asked 21/2, 2017 at 0:58

1

Solved

compdef cmd1=service can be used to define a completion alias, however, that works only when the arguments are going to be the same. For example, consider a helper script which rewrites some argume...
Rosemare asked 3/7, 2022 at 6:51

11

Solved

It's frustrating when I do something like man bindkey and i get: BUILTIN(1) BSD General Commands Manual BUILTIN(1) NAME builtin, !, %, ., :, @, {, }, alias, alloc, bg, bind, bindkey, break, bre...
Sizar asked 10/12, 2010 at 3:31

2

-x means xtrace and -v means verbose. When researching, I find that bash -x "expands commands" while -v prints out the entire command to stdout before execution. The only difference I see...
Accessary asked 14/11, 2016 at 3:14

12

Solved

I am being more cautious than usual because I have been confused by the behavior of npm in the past. I am on a Mac and have installed node.js through brew install node. Now that I want to run j...
Encephalography asked 10/2, 2013 at 23:42

6

Solved

I need to list all files whose names start with 'SomeLongString'. But the case of 'SomeLongString' can vary. How? I am using zsh, but a bash solution is also welcome.
Ersatz asked 1/10, 2008 at 9:56

3

Solved

I have been using zsh globbing for commands such as: vim **/filename vim *.html.erb and so on, but when I type in something like: find . -name *mobile* I get the response: zsh: no matche...
Aloise asked 5/10, 2012 at 20:54

3

I am currently using ubuntu 20 and using zsh + oh my zsh shell . The issue is zsh shell is taking abnormally long time to start up. To puts things in perspective , its almost 9 times slower than ra...
Freakish asked 21/6, 2020 at 13:32

1

I was going through this What is the use of eval `opam config env` or eval $(opam env) and their difference? and notice something funny. I understand command subtitution is used to nest commands in...
Dannettedanni asked 8/6, 2022 at 15:50

8

I’m trying to pimp my VS Code integrated terminal with the agnoster theme and I ran into a small problem. It installed but the symbols are not shown correctly and the arrow at the end of the color ...
Elongation asked 26/4, 2018 at 20:49

2

Solved

I'm just trying to show the current branch of the git repository I'm inside (if available) by using vcs_info. The relevant portion of my .zshrc file is as follows: autoload -Uz vcs_info zstyle ':vc...
Papageno asked 4/6, 2019 at 18:3

2

Solved

I'm aware there are many copies of this question here, but all of their answers recommend adding ZSH_DISABLE_COMPFIX="true" to the top of my ~/.zshrc file. I have done this and still eve...
Washedout asked 28/12, 2020 at 21:9

4

Solved

I'm trying to read in a file as an array of lines and then iterate over it with zsh. The code I've got works most of the time, except if the input file contains certain characters (such as brackets...
Peripatetic asked 29/9, 2012 at 8:57

4

Solved

I would like my prompt to show a cross (✘) when the previous command fails. I use the following code: export PROMPT=$'%(?..✘\n)\n› ' This gives me the following output: › echo Hello Hello › as...
zsh
Parr asked 18/3, 2018 at 11:49

© 2022 - 2024 — McMap. All rights reserved.