zsh Questions
1
Solved
I have this piece of code in my .zshrc:
autoload -U colors && colors
function change_color() {
if [[ "$?" = 0 ]]; then
return "green"
else
return "red"
f...
1
Suppose you have this directory tree:
$ tree /tmp/test
/tmp/test
├── dir_a
│ ├── dir a\012file with CR
│ ├── dir a file with spaces
│ └── sub a directory
│ └── with a file in it
├── dir_b
│...
6
Solved
I work with some log system which creates a log file every hour, like follows:
SoftwareLog.2010-08-01-08
SoftwareLog.2010-08-01-09
SoftwareLog.2010-08-01-10
I'm trying to tail to follow the late...
3
Solved
After installing Homebrew and Homebrew-Cask on my Mac (as administrator with user-id 'admin', running MacOS 10.12.6), I get the error message
zsh compinit: insecure directories, run compaudit for...
Remy asked 6/3, 2019 at 10:6
4
Solved
This is weird, I have set JAVA_HOME for my mac which can be found when I am using bash shell, but if I change shell, I get a message saying JAVA_HOME not set. What could be going on here?
5
Solved
I used Homebrew to install Z shell (zsh) 5.0.7 on my Mac.
For the life of me, .zshrc is nowhere to be found. It is not in ~. Is is not in /etc or /etc/zshrc as they suggest here: http://zshwiki.org...
23
Solved
I am using the z Shell (zsh) instead of the default bash, and something wrong happen so that all commands that used to work are no longer recognized:
ls
zsh: command not found: ls
open -e...
6
If I have files "something1" and "something2" in a folder, how do I make ZSH's tab completion fill in only the common characters? For example, I would type:
som<Tab>
and I want it to fill ...
Disk asked 4/8, 2010 at 21:23
3
Solved
I am not sure what I've set on my iTerm-zsh last night.
But after I open iTerm (zsh) or Terminal on my Mac or I try to use zsh,
it will always show the following:
/Users/Simon/google-cloud-sdk/p...
Custard asked 1/5, 2015 at 18:31
1
Solved
I was having a strange problem with PATH environment variable in MacOS that I spent several hours to debug:
Some time ago, when I was trying to fix the issue IntelliJ terminal PATH variable not t...
4
Solved
I have two machines where git bash auto complete is agonizingly slow. When I hit tab, it can take 8 to 10 seconds for the filename to be completed. This only seems to happen when the auto complete ...
2
My colleague created a branch. I am trying to checkout to the branch.
git checkout hisName/branchNameWithAHash#Inside
The terminal returns
zsh: no matches found: hisName/branchNameWithAHash#Inside...
Prefigure asked 30/8, 2021 at 7:15
28
Solved
What does it mean and how can I fix it?
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]?
Running the compaudi...
Roborant asked 7/12, 2012 at 11:34
6
Solved
'zsh: command not found: ng' in Visual Studio Code's integrated terminal on Mac Catalina
Newer Macs (Catalina OS in my case) now have the default Z Shell aka zsh. Using a Mac zsh terminal window, I've successfully installed Angular 11.0.5 globally and created a project. I'm using nvm 0...
Chabazite asked 3/1, 2021 at 0:24
6
Solved
I am currently using Zsh + Prezto for my scripting shell configuration. I have been using the sorin theme but am a little dissatisfied with it. I'd like to switch to the paradox theme!
It is suppo...
5
Solved
8
Solved
I'm running zsh as the default shell on a Ubuntu box, and everything works fine using gnome-terminal (which as far as I know emulates xterm). When I login from a windows box via ssh and putty (whic...
Trever asked 2/10, 2008 at 10:30
3
Solved
Hi I'm trying to use a power line theme for zsh and although I've installed the Powerline-symbols.otf and various fonts from the https://github.com/Lokaltog/powerline-fonts repo, I cannot get the P...
2
Solved
I want to see which files got sourced while starting the Z-shell. Does it even keep track and if yes is there a way to list all the files?
4
Solved
I am trying to figure out why my oh-my-zsh themes don't work properly. The colors show up properly, but background stays white (with black text). below is my /.zshrc file and current path var...
4
I recently switched from bash to zshell but my history does not seem to be working. when I press the up arrow I don't get the previous commands. Is the shortcut different? Also how do I enable shar...
Mythicize asked 5/9, 2012 at 12:50
2
Solved
I want to use the fzf fuzzyfinder command history instead of the typical command history when I press the up arrow.
In my fzf shell keybindings file I'm able to edit which key brings up the fuzzy ...
Sell asked 5/9, 2019 at 19:33
3
Solved
I usually have many long-running zsh processes (in spread out over various screen sessions) on my computer, but shells that haven't been used for a while tend to be swapped out. When I switch to su...
4
I've started setting up ZSH for VSCode. It worked for a small bit, but then it changed to Git Bash (my previous default shell). I tried changing the shell back to ZSH, but it didn't display in the ...
Liquorice asked 22/9, 2020 at 0:53
10
So I'm looking into learning node.js. I've been following this tutorial to install it and try some stuff out.
At any rate, npm is behaving really strangely. It'll work just fine for a while (I ch...
© 2022 - 2024 — McMap. All rights reserved.