Hot answers tagged

13

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 on /bin/zsh, type it in. Warning: Be very careful when typing the path, as an invalid path given to chsh could cause a lot of problems. Final step: Re-login


8

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 Zsh.


7

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


7

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 file .bash_aliases in your home directory. It's a hidden file, so press Ctrl+H to see it. Or you can type in the terminal: scratch-text-editor ~/.bash_aliases ...


4

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 command. Typically, it is the short form of the 'test' command (/usr/bin/test or similar). By combining esac and [ you've created a pattern that is not ...


4

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-terminal)


4

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 following to the end: alias <string>='<full and long command>' For your specific example: Again, adding to the end of the .bashrc file: alias sfoh='...


3

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 setting several variables whose name start with HIST. In particular, HISTCONTROL is a list of options to tune the behavior. If the option ignoredups is included, ...


2

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


1

quite simple actually using wmctrl and sleep. This is what I did: #!/bin/bash wmctrl -s 0 ############################################ # Switches to first workspace [workspaces are # numbered from 0] ############################################ firefox -private ...


1

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 again.


1

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 noticed that when I pressed ctrl for the copy shortcut (ctrl + c), the selected text was being deselected. I realized that the problem was with the ctrl key-press ...


1

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 When you have what color you like, place the command in your .bashrc file.


1

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


1

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. But you can manually execute your profile files (this sets PATH and does other things as well) For fish you can use the script provided here: https://...


1

.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 app, hence its use of .bash_profile. Sourcing .bashrc from .bash_profile to avoid maintenance of two separate files is pretty common so you don't need to ...


1

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 create a new test user to play around with settings, hack together a .bashrc and a .profile files and copy them to your user home once it works as you want it to ...


1

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.


1

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 shell session, type unset PROMPT_COMMAND in your terminal window.


1

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.


1

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.


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