termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
37.02k stars 3.89k forks source link

[REQ] Option to open a noprofile shell #4051

Closed RivenSkaye closed 4 months ago

RivenSkaye commented 4 months ago

Feature description

I'd like the more options context menu to include the option to open a clean shell that does not load the user profile or rc. Alternatively being able to run a oneshot command that bypasses these files from being loaded would be a great help.

Additional information

Due to stupidity on my part, I've managed to end up with an unusable shell - a script from my dotfiles is being sourced which leaves the prompt command and pre-exec calling inexistent binaries, which in turn makes it so I can't run any command. Including the single command that'd fix my problem.

Biswa96 commented 4 months ago

I've managed to end up with an unusable shell - a script from my dotfiles

There is a failsafe mode which can be used to fix dotfiles https://wiki.termux.com/wiki/Recover_a_broken_environment

RivenSkaye commented 4 months ago

Oh wow, did not manage to find that wiki page myself. Thanks a lot, this saved my hide!