Hot answers tagged

13 votes
Accepted

How to switch to zsh?

Run this: sudo apt-get install zsh Verify where zsh is by typing whereis zsh. Run chsh and it'll ask you to type in your password and to enter the new value. If you've verified that zsh is available ...
user avatar
  • 3,216
8 votes

How to switch to zsh?

I switched yesterday to zsh, all I had to do, was sudo apt-get install zsh chsh -s $(which zsh) Close all your terminals afterwards and you are done. You can customize your shell further with Oh My ...
user avatar
  • 4,526
7 votes
Accepted

How can I make Ctrl+D not close the tab in Pantheon Terminal?

You can disable save-exited-tabs and then Ctrl+D can be used for bash. Just run: gsettings set org.pantheon.terminal.settings save-exited-tabs false
user avatar
  • 2,869
7 votes
Accepted

How can I set up an alias for a command?

For this session Simply run this command: alias key='your long command' Permanently Add the commands as described above into .bash_aliases. Open scratch with the Applications menu and edit the ...
user avatar
  • 2,869
5 votes
Accepted

Remove or ignore duplicate entries in terminal history

The command history is a feature of the shell, which is bash, rather than the terminal emulator Pantheon-Terminal. The behavior around duplicates in the bash command history can be configured by ...
user avatar
4 votes
Accepted

bashrc error message on terminal

You need a newline after esac. esac [ -r /home/ajith/.byobu/prompt ] && . /home/ajith/.byobu/prompt #byobu-prompt# Even though it looks like a special symbol, '[' is actually a ...
user avatar
4 votes
Accepted

No bash_profile and when I define it, it doesn't load

.bash_profile and .profile are only executed by login shells and text consoles. Terminal apps on GNU/Linux are neither so they use .bashrc instead. AFAIK only macOS uses a login shell on its Terminal ...
user avatar
4 votes
Accepted

Case sensitive tab completion

And of course as soon as I ask I find the answer - set completion-ignore-case off in /etc/inputrc (from https://askubuntu.com/questions/87061/can-i-make-tab-auto-completion-case-insensitive-in-the-...
user avatar
  • 181
4 votes

How can I set up an alias for a command?

Creating an alias is quite simple, and it opens a whole realm of possibility for adding shortcuts to your terminal usage. In General: Open up ~/.bashrc in your favourite text editor, and add the ...
user avatar
2 votes

Trying to run a simple shell script to install VirtualBox Guest Additions

Just for interests sake - could you type history and put the last commands down on here to see where you went wrong, or why the system did that? thanks
user avatar
  • 102
1 vote

Syntax error after running every command in tmux

Using an editor such as nano or vim, Add the line unset PROMPT_COMMAND to your .bashrc file, and it will take effect on the next session. To apply the change immediately for the life of the current ...
user avatar
  • 151
1 vote

How can I shorten my command line (bash/oh-my-zsh) prompt?

Okey i just realized that editing .bashrc file was bad idea, i c/p .zshrc file from Mint and it works like charm. Here you can find pastebin of file if someone is interested.
user avatar
  • 11
1 vote
Accepted

How do I launch a new application in a new workspace from terminal?

quite simple actually using wmctrl and sleep. This is what I did: #!/bin/bash wmctrl -s 0 ############################################ # Switches to first ...
user avatar
1 vote

Dumb Noob question: Terminal is stuck in bash edit mode

Just switch the user back to your normal user (username) su username Additional you can run sudo -k to emtpy the password cache, so next time you run a sudo command you have to enter the password ...
user avatar
1 vote

Custom keyboard shortcut now activating after second press

I answered this immediately after posting this and in so doing found a potential bug. I went to delete the shortcut and reestablish it from scratch. When I went to copy the path to the script I ...
user avatar
  • 31
1 vote

What is the most simplest way to change (fix) the colors in the terminal (bash)

In the terminal, you can use the following command. gsettings set io.elementary.terminal.settings background '#090921111a1b' The Hash #090921111a1b is broken down to #RRRRGGGGBBBB in base16 0-f ...
user avatar
1 vote

What is the most simplest way to change (fix) the colors in the terminal (bash)

Try Elementary Tweaks, as described here (https://itsfoss.com/install-elementary-tweaks-in-elementary-os-freya-luna/). It will appear in Settings panel.
user avatar
  • 206
1 vote
Accepted

How to Share the environment Paths between Bash, fish and zsh shells

These shells do not use the same configuration files. Normally the PATH environment variable is set in /etc/profile and ~/.profile which are files read by bash (and dash) but by neither of fish or zsh....
user avatar
  • 4,492
1 vote

.bashrc doesn't exist and doesn't work

There must be some configuration issues, as there is a .bashrc and a .profile file in a default user home directory. You can check the default settings files in /etc/skel. Or you might want to ...
user avatar
  • 4,492
1 vote

bashrc error message on terminal

yup to the answer above ... could also put a semicolon right after the esac. My guess is that this was copied from someone/place and the semicolon got truncated during the copy/paste.
user avatar
1 vote

Can't execute shell scripts

Place the exec option after the user option, or your drive will still be mounted as noexec, because user option implies noexec, nosuid, and nodev.
user avatar
  • 474

Only top scored, non community-wiki answers of a minimum length are eligible