zsh Questions
4
Solved
Recently I want to try Z shell in Mac. But I'd like to continue also saving the command history to ~/.persistent_history, which was what I did in Bash (ref).
However, the script in the ref link do...
2
I'm surprised hasn't been asked before, but…
What is the difference between
alias ⇢ alias EXPORT='alias'
function ⇢ function exporter() { echo $EXPORT }
and
export ⇢ export ALIAS='export'
a...
4
Solved
I use the following prompt in .zshrc:
PROMPT="%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%1~ %{$reset_color%}%# "
When I open terminal I see this prompt:
zoltan@zoltan-Ma...
5
Solved
I updated my shell to zsh and when I type flutter --version I get this:
'''xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/C...
Adiaphorous asked 22/10, 2020 at 19:41
3
I'm using the answer given here: How do zsh ansi colour codes work? to format and add color to my zsh prompt.
Is there any way to format the prompt based on some conditions?
For example, if...
Transit asked 6/11, 2013 at 19:1
2
When I say 'git checkout ' I want zsh to autocomplete names of my git branches. Is that possible?
Headrace asked 22/4, 2010 at 20:32
1
Solved
I am trying to get git autocomplete working with zsh and am running into a weird error (even though the autocomplete appears to complete successfully):
Installation:
mkdir -p ~/.zsh
cd ~/.zsh
curl ...
4
Solved
By searching the solution to disable shadows in MacOS, I found an answer defaults write com.apple.screencapture disable-shadow -bool true
But it does not work in the latest MacOS - Big Sur
How do I...
Marita asked 14/1, 2021 at 14:25
4
Solved
Any variable that I declare in my zshrc is available in the shell as an environment variable. I don't want this to happen.
I tried putting the variables in a function and setting them as local, bu...
5
Solved
I've successfully created and logged into a GCE VM with ssh -i ~/.ssh/google_compute_engine <EXTERNAL IP>.
The VM is running ubuntu 18.04 LTS. I've installed zsh. I've verified that the out...
Umpire asked 11/10, 2018 at 20:34
4
Solved
Using zsh, I'm trying to put a step in my ~/.zprofile where I interactively ask a yes/no style question. At first I tried this bash-style approach, but I saw errors of this form:
read: -p: no copr...
6
It took me a while to figure out how to do this, so posting in case anyone else is looking for the same.
4
Solved
The docker command has a ps sub-command that emits very long lines:
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6e8ec8a16da4 waisbrot/wait:latest "/wait" 4 minutes ago Exi...
1
Solved
The whole issue is discussed here and here. Since no one involved in those discussions was 100% sure about the issue, I'm asking for help here. (For the sake of completeness, I'll start from the be...
Coyne asked 17/4, 2021 at 9:39
2
Solved
iterm2
ohmyzsh
In 'zsh' I can't use 'z' to search folders, appears command not found: z
I try to run
source "$(brew --prefix)/etc/profile.d/z.sh"
and
source /usr/local/etc/profile.d/z.sh
bu...
8
Solved
If you look at the VS Code terminal - its too tiny.
Here're the user settings that I have modified to create this result. I have searched how to change terminal fonts at VS Code, but I have followe...
Habitation asked 4/3, 2018 at 14:32
2
I have seen this post: how-can-i-copy-the-output-of-a-command-directly-into-my-clipboard
I have got this alias
# Redoes the last command and copies the output to clipboard
alias cl="fc -e -|pbc...
7
Solved
I was told that in ZSH you could do something like command and then when you hit up it would filter the history based on the given command. But when I try this it just cycles the history like bash ...
1
Solved
I'm using Ubuntu on WSL2, having installed powerlevel10k on oh-my-zsh.
What is that weird question-mark-number next to the git branch name, what does it mean?
1
Solved
I just installed oh-my-zsh and copied all my user-defined variables and other tid-bits(conda, SDKMAN) to from .bashrc to .zshrc.
I have the Cascadia Code Mono PL font installed on Windows, and Wind...
2
Solved
I'm going nuts trying to understand what is the problem with this simple example (zsh or bash):
echo -n "6842" | printf "%'d"
The output is 0... why though? I'd like the ...
4
Recently I decided to move from zsh to bash shell. Is there a way to quickly convert my .zsh_history file to .bash_history file?
.zsh_history snippet
: 1446994188:0;cat .bash_profile
: 1446994197...
2
Solved
I'm a huge vim lover, but I can't find a way to get vim to follow symlinks when opening files.
As an example, all the dotfiles in my home dirs are symlinked to within the .zprezto directory:
.vim...
2
Solved
After installing cheat (command cheat sheets from the command line), I tried to enable the autocompletion using the provided zsh script. However, I don't seem to find the correct location for the s...
Embus asked 13/8, 2014 at 15:53
8
Solved
I am having a very hard time getting the npm command to work, and unfortunately my knowledge of unix isn't good enough to solve this on my own. All I've done is brew install node, and I get the fol...
© 2022 - 2024 — McMap. All rights reserved.