Created
December 26, 2024 21:47
-
-
Save sarumaj/f47cec497aaece285c7ed97563ab9edc to your computer and use it in GitHub Desktop.
Install wrap-terminal as default terminal emulator on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# install warp | |
wget -qO- https://releases.warp.dev/linux/keys/warp.asc | gpg --dearmor > warpdotdev.gpg | |
sudo install -D -o root -g root -m 644 warpdotdev.gpg /etc/apt/keyrings/warpdotdev.gpg | |
sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/warpdotdev.gpg] https://releases.warp.dev/linux/deb stable main" > /etc/apt/sources.list.d/warpdotdev.list' | |
rm warpdotdev.gpg | |
sudo apt update | |
sudo apt install warp-terminal -y | |
# set warp-terminal as default emulator | |
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/warp-terminal 100 | |
# install nautilus-extension nautilus-open-any-terminal | |
git clone https://github.com/Stunkymonkey/nautilus-open-any-terminal.git | |
cd nautilus-open-any-terminal | |
make | |
sudo apt remove nautilus-extenstion-gnome-terminal -y | |
sudo make install schema | |
cd .. | |
rm nautilus-open-any-terminal -rf | |
# configure nautilus-extension to use warp-terminal | |
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal custom | |
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal use-generic-terminal-name true | |
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal custom-local-command "$(which warp-terminal) warp://action/new_tab?path=%s" | |
# restart nautilus | |
nautilus -q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment