I recently switched from ubuntu to Manjaro. On ubuntu I used Tilix and made it my default terminal emulator.
I did so with:
sudo update-alternatives --config x-terminal-emulator
Is there a way to set the default terminal emulator with Manjaro/Arch?
Edit:
I'm using Manjaro Gnome
I currently use manjaro (i3), and in the past have used manjaro preloaded with different desktop environments(gnome, xfce and KDE). One thing that I have observed is that the default terminal emulator depends on the preloaded desktop environment. Unfortunately, you have not provided which DE you use.
For gnome, you can execute:
gsettings set org.gnome.desktop.default-applications.terminal exec gnome-terminal
Make sure to replace gnome-terminal with your choice.
If you use xfce DE, then go to settings, then preferred application, then utilities tab and then change the terminal emulator from there.
If you use i3, you can either change the i3 config file located in ~/.i3/ and then change the binding for $mod+Return exec i3-sensible-terminal (Replace i3-sensible-terminal with your choice.) OR you can install xfce4-settings-manager using:
sudo pacman -S xfce4-settings
Then execute xfce4-settings-manager using menu ($mod+d) follow the steps as I mentioned for xfce desktop environment above.
Not really a solution, but a work-around that works for most of my use cases.
Adding a keyboard shortcut (under Settings → Devices → Keyboard) with:
Name: Launch Terminal
Command: tilix
Shortcut: Ctrl+Ctrl+T
If you are on KDE:
I am currently using Manjaro with KDE version 5.26.4. For me I went into Settings --> Applications --> Default Applications.
From there you can select the Terminal emulator of your choice from the drop-down menu.
Related
I'm currently using Debian Buster (10): installed a new terminal emulator (Alacritty) along with a new shell (ZSH); and configured my system to use this new terminal & shell as the defaults.
Unfortunately, VScode continues--regardless of the changes I make in my vscode settings file--to use some sort of defunct terminal. Notice the screwed-up styling:
screenshot of vscode with incorrect terminal
Anyone with knowledge on how to configure vscode to use the correct terminal would be very much appreciated. Thank you guys.
This is just a terminal font issue.
First you need to download and install a Powerline Font (there are quite a few, check this link for hints).
Then you need to assign that downloaded font to your terminal. You should add:
{
"terminal.integrated.fontFamily": "<your powerline font>"
}
to your settings.json file, or search in the gui settings Terminal integrated Font Family and add it there.
I personally use SauceCodepro NF which works great for me.
I am using Windows 10.
I have Git Bash (from Git 2.20.1) installed with configuration of using MinTTY as terminal emulator.
I can see that following entry in Git-2.20.1/etc/install-options.txt
Bash Terminal Option: MinTT
This means when I start git-bash it uses MinTTY as terminal - one can see this by right clicking on the title bar of git-bash window.
Now I have to switch to windows default console. When I say "switch" I mean when I start git-bash I expect it to use windows console - I should be able to confirm this by right clicking on the title bar of git-bash window.
Below link explains the difference between MinTTY and Windows console - https://willi.am/blog/2016/08/08/docker-for-windows-interactive-sessions-in-mintty-git-bash/
However I cant find any config or mechanism to change this. (Changing install-options.txt with Bash Terminal Option: ConHost does not have any effect)
And I cant reinstall it as it has came via my organizations packaging system.
Is there any config anyone knows which I am missing?
Appreciate help - Many Thanks !
This switch is a part of git-bash.exe binary. It's only being edited by Git Windows installer hook named edit-git-bash.
You could compile and run edit-git-bash.
Or reinstall Git entirely (simpler)
When using IntelliJs integrated terminal - for example with git - sometimes my CTRL + C keystrokes don't make to the terminal. For example the current line is not aborted.
What can I do as this behaviour is very annoying.
As I had git for Windows installed anyway I just replaced the terminal used by IntelliJ from cmd.exe (which is the default on windows) to bash.exe supplied by git for Windows (which is cygwin btw)
To change it for all projects go to File >> Other Settings >> Default Settings and then Tools >> Terminal. (see screenshot)
In the shell path field set the following line:
"C:\Program Files\Git\bin\bash.exe" --login -i
Please make sure git is installed at the proper localtion or adjust the path (for example if you have the 32bit version of git installed)
Using bash instead of cmd, the problem does not occour for me. Plus the bash supports some commands that cmd does not support, which is kinda nice when been used to a linux environment.
EDIT 2020-09-30: In latest Intellij versions the Terminal is a project-level setting and can be changed here:
Sometimes it could be because of vim emulator just turn it off
Go to Tools
Deselect Vim Emulator
Because Vim mode is checked,
Tools, Vim Emulator, there will be a √ in front of it, just cancel it, as shown in the figure:picture
I hope i can help u.
After installing Anaconda(3 or higher) it includes Spyder. So it isn't known as an independent application. The problem with this kind of having Spyder is that Ubuntu doesn't allow to Duck it or add a Spyder shortcut on Desktop or add it as a Favorite. Therefore, every time I need to run Spyder, I have to run it through command line: $ spyder which is not the best and a fast way to run it.
On the other hand, I already have spyder and based on it's official website is not recommended to have it double installed: https://pythonhosted.org/spyder/installation.html
So I need a way which allows me to have a shortcut for my Spyder on Desktop or Favorites list or on Duck.
after searching a lot, here is what has worked for me: Copy any launcher from:
/usr/share/applications/.
Right click and go to properties, change the command line to spyder path:
~/anaconda3/bin/spyder or ~/anaconda/bin/spyder
Note: You can get the correct spyder path by typing: $ which spyder
Change the rest of the info like description and icon path as you like.
Save the file under something like spyder.desktop in order to set it as a desktop configuration file.
Now you have a app launcher which is connected to spyder (in Anaconda), copy the launcher to:
~/.local/share/applications/
Now the icon should pop up in your application menu.
Note: You should set the user as the owner. So this is the last step:
sudo chown <username> ~/.local/share/applications/spyder.desktop
this is the first time I ask on stackoverflow because I can't find the answer anywhere. I use emacs to write all my code and I just switched from ubuntu to mac os. One problem has been bothering me: How could you open emacs window from mac terminal just like you would open firefox window from terminal on Linux system? I know the way it works for Linux system is that, whenever you type a command from terminal, the terminal search for the binary in you PATH and execute it. Is it the case for Mac that you can only open applicaiton in window form under "/Application" directory and all binaries opened from terminal are in non-window form? Big thanks!!
The pre-installed Emacs that comes with OS X is built without the GUI. Hence
$ emacs # in the shell/terminal
will NOT open a graphical window, and instead will open up the text/terminal version instead. Note that this version (installed at /usr/bin/emacs) is also old, and is at 22.1.1 in Mountain Lion.
To get the behavior you desire (and also get the latest version of Emacs as a bonus), you can download the latest Emacs build. This is available at various places, including http://emacsforosx.com/.
Most of these pre-built Emacs are installed under /Applications, and in order to invoke from the terminal, you will need to specify the full path to the binary, which usually is:
/Applications/Emacs.app/Contents/MacOS/Emacs
You can create a simple alias to this binary in your .bashrc as:
alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
and then invoke emacs in its full glory from the command line.
I just tried
/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal &
and it did open a new window just fine.
OS X 10.7.4 here.
EDIT: Indeed if I try:
open /Applications/Utilities/Terminal.app
No new terminal window is opened
But,
open --new /Applications/Utilities/Terminal.app
works also, and is probably better than my first option because the job is not tied to the terminal you started the new terminal with.
First, download a Mac OS/X emacs build from here: http://emacsformacosx.com/
Second, once it's installed, you can:
Open it from the command line with open -a emacs
Set it to run server mode in your .emacs init, and then at the
command line type emacsclient foo for file foo.
I'd recommend either getting emacs via fink, or going to here: http://emacsformacosx.com/
This will allow you to install a local version of emacs that runs through the X server, and thus has the full GUI interface.
not sure if u're looking for something like this
open /path/to/some.app