Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [zsh]

zsh is a shell designed for interactive use, although it is also a powerful scripting language. Many of the useful features of bash, ksh, and tcsh were incorporated into zsh; many original features were added.

1
vote
1answer
45 views

Change default terminal back to Bash in VS Code

I installed zsh in my Ubuntu 18.04 but didn't like it. After installing it I was having issues, so I removed it. The default terminal in my VS Code has not changed back to Bash for some reason. ...
0
votes
0answers
8 views

My terminal opens but it does not work [duplicate]

I removed zsh and after that it opens it blinks my terminal
0
votes
0answers
5 views

zsh lost after connecting to online server via ssh

i have zsh installed on my local computer and when I use ssh to connect cloud server such as AWS or Digital Ocean my shell changed to zsh. Why is that so and how to remain in zsh?
0
votes
0answers
21 views

byobu and guake clear history while a command is running

I'm using byobu and guake (and my shell is zsh), and I was wondering if there's a way to clear (or somehow reset the terminal) while a command is running. I have configured CTRL+K for my byobu to do ...
-5
votes
1answer
54 views

Why i got 0 answer when i tried to make 1 mistake all the scores [closed]

#!/bin/zsh echo "enter quiz1 score:" read quiz1 echo "enter quiz2 score:" read quiz2 echo "enter seatwork score:" read seatwork echo "enter exam score:" read exam echo "enter lab1 score:" read lab1 ...
1
vote
0answers
28 views

ZSH uses 100% CPU on ubuntu

I am using ZSH with terminator, however all the time zsh is using 100% and i can't find what is causing this problem. ZSH installed plugins: zsh-autosuggestions
3
votes
1answer
80 views

could not open directory '.dbus/': Permission denied

I'm working on Ubuntu 18.04.01 using Guake terminal and zsh. Every time I run a command in terminal I get this warning after executing this command. could not open directory '.dbus/': Permission ...
1
vote
1answer
26 views

Convert single page from PDF to JPEG and getting error: `no matches found: Binder3.pdf[12]`

I want to convert single page from 333 PDF pages file. I have tried with this command: convert Binder3.pdf[12] image.jpg, but for some reason I am getting this error: zsh: no matches found: ...
1
vote
1answer
54 views

Get gnome default terminal history from Zsh terminal?

Before ZSH, I used default Gnome terminal. I am using the ZSH terminal when I try use history cmd (in ZSH terminal) it only shows the ZSH session cmd history. Now the question is how do I get the ...
1
vote
0answers
103 views

zsh: command not found: git-flow

I want to use git-flow on my Ubuntu machine but I am getting zsh: command not found: git-flow Steps I followed are: Installed git-flow, sudo apt-get install git-flow After installing I use git-...
1
vote
1answer
37 views

What the difference between the output of kill -l on Bash and Zsh?

When I run the kill -l command in Zsh and Bash, the results are different. Why is that?
0
votes
1answer
133 views

Can not root: after removing ZSH and returning to default bash

I can not $ sudo su everytime, I enter the command, the terminal says : can not execute /usr/bin/zsh no such file or directory How to return to default bash of Ubuntu and make bash as default ...
0
votes
0answers
63 views

Gnome Terminal: font background shifted

The powerline fonts are somehow broken on my gnome terminal: does anyone have a clue why this could happen? I'm using oh-my-zsh and I'm scaling the interface to 2 because of my high resolution ...
1
vote
1answer
64 views

./zshrc is corrupted; crashing when opens my WSL bash

I'm on WSL. I went to zsh from bash and based on this advises here I added source ~/.bashrc at the beginning of my ~/.zshrc file in order to be able to use nvm, node, npm commands in zsh. But now when ...
1
vote
0answers
72 views

How do I get zsh 5.xx on ubuntu 18.04

I have a docker container with ubuntu 18.04 on it. after apt-get update I do: # apt-get install zsh-beta Reading package lists... Done Building dependency tree Reading state information... Done E: ...
1
vote
1answer
32 views

Invoking command stored in a variable in zsh

This works fine: #!/usr/bin/env bash cmd="ls -l" ${cmd} But change it to run under Z shell: #!/usr/bin/env zsh cmd="ls -l" ${cmd} And I get: ./testing.sh:3: command not found: ls -l Why, and how ...
1
vote
0answers
147 views

PPAs for updated bash and zsh shells

I would like to use newer versions of bash and zsh. I've searched google for: site:launchpad.net bash "ppa" I've also searched at: https://launchpad.net/ubuntu/+ppas?name_filter=bash Doing the ...
0
votes
0answers
17 views

error in time command with zsh [duplicate]

I am on Ubuntu:- No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic On terminal, I run this command:- time -f "\t%E real,\...
0
votes
0answers
48 views

capture the command that launched the running process in my shell

I try to make the title of my windows in GNU screen automatically equal to the path of the working directory PLUS the process running if there is one (e.g: npm start or vim file.js) for that purpose ...
0
votes
0answers
84 views

Duplicate username in shell

I'm using zsh as my shell. However whatever theme I choose my username is always duplicated in the shell. How can I fix this?
2
votes
1answer
98 views

apt list not working properly. (Ubuntu 18.04, zsh and bash)

I'm having trouble listing packages using apt in Ubuntu 18.04 using either zsh or bash. Here's the scenario: In the past, I could list all packages on my system with apt list *, or a subset of these ...
3
votes
2answers
134 views

For each file in a directory, pass it as an argument to an image viewer [duplicate]

I have a directory with a bunch of .dcm files (they are medical scans) that looks like this: J6071c1.dcm J6071d7.dcm J6071ed.dcm J607203.dcm J607219.dcm J60722f.dcm J6071c2.dcm J6071d8.dcm ...
2
votes
1answer
143 views

Clear the characters before the current cursor position in Zsh

In bash pressing CTRL + U clears the characters on the line before the current cursor position while in zsh this will clear the entire line. How do I clear the characters on the line before the ...
0
votes
1answer
2k views

Nerd font not fond in terminal profile

I installed Hack Regular Nerd Font Complete by downloading the .ttf file here. I opened the .ttf file directly and clicked "install", and it told me that the font was installed. However, I cannot find ...
0
votes
1answer
102 views

zsh from /usr/local/bin/zsh doesn't recognize vendor-completions

I've built zsh from sources and installed it in /usr/local/bin/zsh. There was a packaged installation in /usr/bin/zsh as well. Now, when I install some other packages they occasionally put their ...
1
vote
0answers
30 views

bash vs. zsh - permission issue

I usually use bash, but would sometimes go to zsh (with oh-my-zshell) by typing zsh. I've noticed something interesting. I have a script, sss.sh - that shell script refers to a .pem file in an ssh ...
1
vote
1answer
217 views

How do I make named directories permanent in zsh and how do I edit them. Also what is the best place to look for documentation.

I just installed zsh and oh-my-zsh and I would like to use the named directories feature, i.e. % hash -d foo=/etc % echo ~foo /etc However, when I restart my console, these settings are gone. How ...
1
vote
2answers
94 views

not able to become root becouse of changing /etc/passwd file

I've changed /etc/passwd first line: root:x:0:0:root:/root:/usr/bin/zsh now I can not become root so I can not fix what I changed. Is there any other way to change that file without becoming root?
0
votes
1answer
170 views

Intall zsh and oh my zsh

I am trying to install zsh and oh my zsh. sudo apt install zsh chsh -s $(which zsh) Logout from terminal Reopen terminal Nothing happens, i expected to see a list of choices, nothing. Then I enter ...
2
votes
1answer
8k views

Install zsh in Ubuntu 18.04

I have upgraded to Ubuntu 18.04 and have been trying to install zsh. I have went through all the methods, and am able to use it, though when I try to install Oh My Zsh, it starts to run and then has ...
1
vote
1answer
100 views

How to insert a space between “file” and “git” + How to get full path to show?

1) How to insert a space in between the current directory (file) and the git_prompt_info (git) without ending up with an extra space between the current directory and the text cursor ? When no space ...
2
votes
1answer
446 views

Change between bash and zsh via terminal profiles

My default shell is bash, but I'd like to play around with zsh as well. I have a separate profile for zsh. When I launch a terminal it opens a bash shell, and I'd like to switch to a zsh by doing ...
0
votes
0answers
140 views

colorls not available on some terminal emulators?

running into a weird issue that I have absolutely no idea how to troubleshoot (and didn't find anything useful on google) so figured I could ask for some guidance. I have colorls installed and ...
0
votes
1answer
2k views

Why is my alias not working in Zsh?

I have added my alias to ~/.aliases file and the file right now is like this: alias gss="git status" alias gl="git log" alias pa="php artisan" alias reload=". ~/.zshrc && echo 'ZSH config ...
0
votes
1answer
41 views

setting a generic alias results in doing nothing at all

I want to create an alias, that can be defined on any command and concats | lolcat to it. So far I googled myself to alias MyCommandName='f(){"$@" | lolcat; unset -f f};f' but when I test it with ...
0
votes
2answers
741 views

Wait for user input

I'm creating a little function for a process I have often to repeat. What I would like to do is that if I call the function parameterless, it will show me the branches and allow me to make the ...
2
votes
1answer
934 views

Can't set up awesome-terminal-fonts

I'm trying to setup a great Powerlevel9K prompt with awesome-terminal-fonts and don't succeed. I have zsh and oh-my-zsh installed, powerline installed for terminal and vim and nerd-font installed too. ...
0
votes
2answers
733 views

I use zsh as my regular user, but when I use root my shell is Bash. How can I use Zsh for root too? [duplicate]

My Original question: When I run sudo su my zsh prompt changes back to Bash. How can I make Zsh the default shell for the root user? My answer about duplicate : The question about when a post is ...
3
votes
1answer
1k views

Where is the alias for ll defined

I often find myself using ll which is an alias. $ type ll ll is an alias for ls -lh I always wondered where this was defined as it works both on bash, zsh but not on sh: # THIS IS SH $ ll sh: 1: ll:...
2
votes
1answer
230 views

~/.profile doesn't run after upgrading to Ubuntu 17.10

After upgrading Ubuntu from 17.04 to 17.10, ~/.profile file has suddenly stopped running on login. Therefore, the script below, which is located in ~/.profile isn't run # set PATH so it includes user'...
0
votes
2answers
36 views

timing the execution of a source command

I'm trying to improve the execution of my zsh dotfiles, and I need to time the execution my sub-scripts. I have a section of code in my .zshrc looking like this: typeset -U config_files config_files=...
2
votes
1answer
331 views

Syntax in HISTORY_IGNORE?

I am trying to ignore some sensitive commands from being saved in history file in zsh. HISTSIZE=1000 # 1000 lines of history within the shell SAVEHIST=1000 # 1000 ...
4
votes
3answers
2k views

I can't use snap packages, even if installed

I installed Spotify, VS Code and Atom snap packages. I used them a couple of days. Today, I can't use them. There are two different problems: They aren't in Gnome Launcher with all other programs. I ...
0
votes
1answer
63 views

How do I make Guake use my Zsh command history?

I often use Guake (drop-down terminal for GNOME). The problem is that it apparently stores its own command history, and it is different from that of the standard GNOME terminal. My shell is zsh and ...
5
votes
1answer
65 views

Filter tab-completion per application by extension

Say someprogram needs only *.abc files as command line arguments. In terminal, when I do $ someprogram <tab> I'd like to only the *.abc files to be listed for tab auto-complete. How do I do ...
0
votes
2answers
195 views

Make .destop for ZSH such that it launches zsh and remains without transfering to .desktop of gnome-terminal?

First of all this IS NOT A DUPLICATE not even a possibility. Behavior of zsh.desktop placed in /home/user/.local/share/applications : It opens fine when I double-click and execute, but after a few ...
0
votes
1answer
128 views

zsh would auto print the command I type

I found zsh would print the command I type ⚡ root@default  /var/log/squid  pwd pwd/var/log/squid ⚡ root@default  /var/log/squid  pwd pwd/var/log/squid ⚡ root@default  /var/log/squid  rm /var/...
0
votes
1answer
134 views

Ubuntu terminal automation

Is there a way to run a script by opening a new window and sending inputs to it, so that is looks like someone is typing into the window?
0
votes
1answer
100 views

terminal shuts down immediately after 17.10 upgrade

Well this one has me stumped: I can't log in to any terminal. Every time I try to open a terminal or log on, I am logged out instantly, even when I do this from ctrl-alt-f1. Now, before the upgrade ...
0
votes
1answer
248 views

bash script stop after execute external script(oh-my-zsh installer.sh)

I write a script to auto install zsh and set some default config. function setup_zsh(){ echo "####################################" echo "setup zsh" apt-get install -y zsh git curl ...