zsh Questions

3

Solved

I have following code in my .zshrc: TMOUT=1 TRAPALRM() { zle reset-prompt } After triggering menu completion all items from menu, except highlighted one disappear after TRAPALRM triggers and whe...
Taxis asked 23/10, 2014 at 10:30

0

I want to have my ssh|scp|rsync completion in zsh to only show me the the hosts defined in my .ssh/config file. I also want to avoid the autocompletion to show me any host or hostname with dots. I ...
Obau asked 10/3, 2023 at 11:9

17

Solved

Recently, I give a try on oh my zsh, everything looks good till I try virtualevn and virtualenvwrapper. When I activate a virtualenv (e.g test), on normal bash, I will see the virtualenv name like:...
Maidamaidan asked 13/8, 2016 at 2:48

3

Inside a function, how can I get the file name of whatever script called that function? Via prompt expansion, %x provides the name of the file that defines the function. %N provides the function n...
Sabelle asked 28/2, 2016 at 1:43

10

I'm using zsh with the oh-my-zsh framework of Robby Russell. How can I create a shortcut or something to repeat the last part of a command? For example, if I type: mv something in/this/difficult/to...
Condescendence asked 1/12, 2011 at 16:24

5

Solved

I recently purchased a new MacBook and I am trying to re-configure my system. The app is inside the Applications folder as 'Sublime Text.app' I have edited the sublime.plugin.zsh file via other a...
Ducks asked 10/8, 2014 at 21:22

1

What I am trying to achieve I added a custom location in the PATH variable hoping that I could run shell scripts placed in that location easily. But it is not working as I expected. Here is what ec...
Oleneolenka asked 28/10, 2021 at 0:59

2

Solved

I am getting zsh: command not found: adb error even after updating my .zshrc file. I have added the following path in my .zshrc file # For ADB export ANDROID_HOME=/Users/aanshu/Library/Android/sdk ...
Basketball asked 14/6, 2022 at 17:42

6

Let's say I ran a command using a zsh echo "mysecret" > file I can easily print the history including the entry numbers using the command fc -l: 1 echo "mysecret" >| file But how can I...
zsh
Superimposed asked 30/8, 2011 at 13:31

1

I encountered this command while trying to find a workaround for installing old version of npm packages that came out before m1 mac (darwin arm64) I understand that this will try to launch a zsh se...
Yonkers asked 25/1, 2023 at 5:27

2

# Path to your oh-my-zsh installation. export ZSH=/Users/baby/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll l...
Brigantine asked 8/11, 2015 at 3:8

23

Solved

I recently installed zsh and oh-my-zsh in my Mac. Now when I try to run a maven command from the terminal, I am getting the following error. $ mvn install zsh: command not found: mvn I have inst...
Ingesta asked 26/11, 2015 at 9:47

4

Solved

In a shell script (in .zshrc) I am trying to execute a command that is stored as a string in another variable. Various sources on the web say this is possible, but I'm not getting the behavior i ex...
Virgievirgil asked 2/12, 2012 at 0:21

2

I'm trying to update the previous command prompt with the time when the command was written. With the code I wrote, typing the following command [--:--] costam:~ $ echo "Wrote this at 10:20" an...
zsh
Posit asked 24/4, 2020 at 9:22

1

When I open my .zsh_history file, I found that some non-ascii characters in my history have strange encoding or something like that. Here is a minimal example: First, the .zshrc is # zshrc HISTSIZE...
Isotropic asked 5/9, 2022 at 8:57

31

➜ ~ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -e:77: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040677 It appea...
Panatella asked 15/4, 2016 at 21:44

1

Solved

I'm using Mac OS Monetary and Recently installed Git for a project. I followed the below steps to activate the Git Autocomplete feature for Git commands and Branch names. I got success in my Previo...
Vardon asked 17/8, 2022 at 18:6

1

After activating my venv and installing Pydantic through pip install pydantic I tried creating a new file as follows: from pydantic import Basemodel, EmailStr class Person(BaseModel): id: ...
Sidoney asked 5/1, 2023 at 17:44

4

Solved

I'm looking for theme to display a full path + git (branch name + uncommitted changes + added files). Didn't find any. something like this: /full/path/to/repo (master *+) would love a recommend...
Scanty asked 11/1, 2015 at 7:49

3

Solved

I'm trying using gsutil to remove the contents of a Cloud Storage bucket (but not the bucket itself). According to the documentation, the command should be: gsutil rm gs://bucket/** However, w...
Photima asked 22/8, 2016 at 8:57

5

If my .zshrc file is ~/.dotfiles/zsh/.zshrc, how can I create a symlink so that the file appears as ~/.zshrc?
zsh
Karena asked 30/7, 2013 at 0:14

5

Solved

How can I change the username, hostname, and path color in iTerm2? I'm using the built-in Solarized colorscheme. In Ubuntu, the same built-in colorscheme is highlighted like: In iTerm2: Curren...
Brythonic asked 26/5, 2020 at 19:13

4

Solved

In zsh, how can I set up the line editor such that backward-kill-word stops on a directory separator? Currently in my bash setup, if I type cd ~/devel/sandbox and then hit C-w point will be right ...
zsh
Faithfaithful asked 14/1, 2009 at 22:30

7

Solved

I recently switched to zsh on my Terminal.app on my OS X machine successfully. The version number of zsh is 4.3.11.
Middlebrooks asked 15/7, 2013 at 7:14

3

I'm trying to write a shell script that deletes duplicate commands from my zsh_history file. Having no real shell script experience and given my C background I wrote this monstrosity that seems to ...
Cobby asked 18/5, 2022 at 17:37

© 2022 - 2024 — McMap. All rights reserved.