summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* app-shells/bash: restructure the system-wide bashrc for 5.1 and 5.2Kerin Millar2024-04-205-0/+896
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit simplifies /etc/bash/bashrc by separating out the functionality that is relatively complicated - perhaps even opinionated on the part of Gentoo - into files that are installed to the /etc/bash/bashrc.d directory. The intention is to preserve the overall Gentoo flavour, while making it easier for users to customise their operating environment than was the case before, and to be able to easily suppress functionality that they may not wish for. The exact changes are described herewith. No longer will a superfluous error message be printed in the case that bash was not compiled with readline support. Files within /etc/bash/bashrc.d must now have a suffix of either ".sh" or ".bash" in order to be sourced. This better reflects the way in which /etc/profile works and should be a little safer. Two new files are introduced: - /etc/bash/bashrc.d/10-gentoo-color.bash - /etc/bash/bashrc.d/10-gentoo-title.bash Users may suppress these with INSTALL_MASK, should they wish to do so. The NO_COLOR variable is now respected, provided that is is defined prior to the sourcing of 10-gentoo-color.bash. It should be noted that ssh users have the option of transmitting this variable by configuring both ssh(1) and sshd(8) accordingly. The way in which terminals are evaluated for colour support has been greatly improved. There are now three heuristics involved. The first method is to determine whether COLORTERM is already set as an environment variable. This is an effective method because modern terminal emulators commonly set the variable so as to advertise 24-bit colour support. Further, Gentoo already whitelists the COLORTERM variable in both ssh(1) and sshd(8). The second method is to use the ncurses implementation of tput(1) to determine whether colour is supported. The third method is to fall back to a traditional whitelist of TERM patterns. However, I have overhauled this list based on an arduous survey of terminal emulators during which I collected empirical evidence as to which of them actually belong on the list. As such, the coverage of this method of last resort is broader. The COLORTERM variable will now be set for terminal emulators that are found to support 24-bit colour but which do not set the variable by themselves. Colour-supporting aliases will now be defined for all of the following utilities: diff, dir, egrep, fgrep, grep, ls and vdir. Out of an abundance of caution, the -- operand is now used to signify end-of-options in the case that dircolors(1) is being passed a pathname incorporating the user's home directory. PROMPT_COMMAND will now be defined as an array, as is supported for bash 5.1 or greater. It is more convenient because additional commands can simply be appended to the array. No longer will the "Title Definition String" and/or "Set Text Parameter" sequences be injected into the value of PS1. This keeps the value of PS1 clean and results in fewer side effects in the event that the user wishes to customise the prompt. PROMPT_COMMAND will now be used to contain commands that print the "Title Definition String" and/or "Text Parameter Sequences", depending on the characteristics of the operating environment. The precise behaviour is conveyed from hereon. If the value of TERM is found to be that of the screen or tmux terminal multiplexers, PROMPT_COMMAND will be set so as to invoke a function that prints the Title Definition String sequence. The effect of the sequence is to define the window title for screen, and the pane title for tmux. The title will incoporate the hostname in short form. If, on the other hand, the value of TERM is not found to be that of a terminal multiplexer, a test is performed to see whether the tty is that of sshd(8). If it is, then no further processing will occur. The reason for this is it that there is no way for Gentoo to know the characteristics of the operating environment where ssh(1) happens to be running at the time. Sadly, there are many cases in which the window title would simply not be restored after ssh(1) exists, which amounts to a poor user experience. Assuming that processing has not ceased at this point, the value of TERM will be matched against a whitelist of modern terminals that are known to support the Set Text Parameters Sequence, and to support UTF-8 correctly. If a match is made then PROMPT_COMMAND will be amended so as to invoke a function that prints the aforementioned sequence. The effect of the sequence is to define the hardstatus for screen, the window name for tmux and the window title for graphical terminal emulators. The title will incorporate the username, the hostname in short form and the basename of the current working directory. Said basename will be sanitised where appropriate, by employing the ${param@Q} form of parameter expansion. Doing so improves the user experience by ensuring that, where the basename contains anything other than (visible) graphemes, the title will always show a valid, legible shell word. It should be noted that users may now easily opt out of the title setting behaviour by either unsetting PROMPT_COMMAND or by re-defining it, which was not possible before. At the same time, users that like to customise the value of PROMPT_COMMAND now have the option of appending their custom commands to the array, duly preserving the default Gentoo behaviour. Signed-off-by: Kerin Millar <kfm@plushkava.net> Bug: https://bugs.gentoo.org/show_bug.cgi?id=554086 Bug: https://bugs.gentoo.org/show_bug.cgi?id=926742 Signed-off-by: Sam James <sam@gentoo.org>
* app-shells/nushell: drop 0.89.0Jonas Frei2024-04-162-821/+0
| | | | | | Signed-off-by: Jonas Frei <freijon@pm.me> Closes: https://github.com/gentoo/gentoo/pull/36108 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* app-shells/nushell: add 0.92.1Jonas Frei2024-04-162-0/+760
| | | | | | | | | Removed 'extra' USE flag, it was removed upstream as well. Also, bumped minimal required Rust version to 1.66.1 as per upstream documentation. Signed-off-by: Jonas Frei <freijon@pm.me> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* app-shells/atuin: add 18.2.0Jonas Frei2024-04-152-0/+645
| | | | | | | | No changes that would impact the ebuild. Signed-off-by: Jonas Frei <freijon@pm.me> Closes: https://github.com/gentoo/gentoo/pull/36269 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/tmux-bash-completion: EAPI=8Arthur Zamarin2024-04-141-5/+4
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app-shells/powerline: enable py3.12Matthew Thode2024-04-132-2/+2
| | | | | | Closes: https://bugs.gentoo.org/929359 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
* app-shells/fzf: Version bump to 0.49.0Matt Turner2024-04-102-0/+74
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* app-shells/nushell: Stabilize 0.91.0 amd64, #928596Arthur Zamarin2024-04-051-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app-shells/kshdb: add missing remote-idMichael Mair-Keimberger2024-04-051-0/+3
| | | | | Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app-shells/pwsh-bin: drop old 7.4.0Maciej Barć2024-04-042-72/+0
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* app-shells/pwsh-bin: drop old 7.3.9Maciej Barć2024-04-042-72/+0
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* app-shells/pwsh: Stabilize 7.4.1 amd64, #928546Jakov Smolić2024-04-041-1/+1
| | | | Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
* app-shells/pwsh-bin: Stabilize 7.4.1 arm, #928546Sam James2024-04-041-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* app-shells/pwsh: Stabilize 7.4.1 arm, #928546Sam James2024-04-041-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* */*: reassign monsieurp's packagesMichał Górny2024-04-032-7/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* app-shells/autojump: Stabilize 22.5.3-r3 amd64, #928449Arthur Zamarin2024-04-021-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app-shells/autojump: Stabilize 22.5.3-r3 x86, #928449Arthur Zamarin2024-04-021-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app-shells/atuin: stabilize 18.0.1 for amd64Florian Schmaus2024-03-311-1/+1
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/atuin: keyword 18.1.0 for ~arm64Florian Schmaus2024-03-311-1/+1
| | | | | Closes: https://bugs.gentoo.org/928280 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/zoxide: Keyword 0.9.4 arm64, #927735Arthur Zamarin2024-03-251-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app-shells/yash: new upstream releaseAkinori Hattori2024-03-242-0/+36
| | | | Signed-off-by: Akinori Hattori <hattya@gentoo.org>
* app-shells/ugit: new package; add 0.4.3Maciej Barć2024-03-193-0/+50
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* app-shells/irregular: new package; add 0.7.8Maciej Barć2024-03-193-0/+48
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* app-shells/atuin: add 18.1.0Jonas Frei2024-03-172-0/+679
| | | | | | | | | | No new features that are relevant for the ebuild. There is a compile warning: "constant 'SHA' is never used", which I think is safe to ignore. Signed-off-by: Jonas Frei <freijon@pm.me> Closes: https://github.com/gentoo/gentoo/pull/35757 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/bash: remove unused patchMichael Mair-Keimberger2024-03-161-18/+0
| | | | | Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
* app-shells/fish: update LICENSEUlrich Müller2024-03-154-6/+6
| | | | | Closes: https://bugs.gentoo.org/927039 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* app-shells/nushell: drop 0.88.1, 0.90.1Jonas Frei2024-03-143-1462/+0
| | | | | | Signed-off-by: Jonas Frei <freijon@pm.me> Closes: https://github.com/gentoo/gentoo/pull/35756 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* app-shells/nushell: add 0.91.0Jonas Frei2024-03-142-0/+779
| | | | | Signed-off-by: Jonas Frei <freijon@pm.me> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* app-shells/powerline: revbump for PEP517 changeSam James2024-03-121-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | diff is OK: ``` * CMP: =app-shells/powerline-2.7-r2 with app-shells/powerline-2.7-r2/image * FILES:-usr/lib/python3.10/site-packages/powerline_status-*-py3.10.egg-info/PKG-INFO * FILES:-usr/lib/python3.10/site-packages/powerline_status-*-py3.10.egg-info/SOURCES.txt * FILES:-usr/lib/python3.10/site-packages/powerline_status-*-py3.10.egg-info/dependency_links.txt * FILES:-usr/lib/python3.10/site-packages/powerline_status-*-py3.10.egg-info/not-zip-safe * FILES:-usr/lib/python3.10/site-packages/powerline_status-*-py3.10.egg-info/requires.txt * FILES:-usr/lib/python3.10/site-packages/powerline_status-*-py3.10.egg-info/top_level.txt * FILES:+usr/lib/python3.10/site-packages/powerline_status-*.dist-info/METADATA * FILES:+usr/lib/python3.10/site-packages/powerline_status-*.dist-info/RECORD * FILES:+usr/lib/python3.10/site-packages/powerline_status-*.dist-info/WHEEL * FILES:+usr/lib/python3.10/site-packages/powerline_status-*.dist-info/top_level.txt * FILES:-usr/lib/python3.11/site-packages/powerline_status-*-py3.11.egg-info/PKG-INFO * FILES:-usr/lib/python3.11/site-packages/powerline_status-*-py3.11.egg-info/SOURCES.txt * FILES:-usr/lib/python3.11/site-packages/powerline_status-*-py3.11.egg-info/dependency_links.txt * FILES:-usr/lib/python3.11/site-packages/powerline_status-*-py3.11.egg-info/not-zip-safe * FILES:-usr/lib/python3.11/site-packages/powerline_status-*-py3.11.egg-info/requires.txt * FILES:-usr/lib/python3.11/site-packages/powerline_status-*-py3.11.egg-info/top_level.txt * FILES:+usr/lib/python3.11/site-packages/powerline_status-*.dist-info/METADATA * FILES:+usr/lib/python3.11/site-packages/powerline_status-*.dist-info/RECORD * FILES:+usr/lib/python3.11/site-packages/powerline_status-*.dist-info/WHEEL * FILES:+usr/lib/python3.11/site-packages/powerline_status-*.dist-info/top_level.txt * ------> FILES(+8,-12) ``` Fixes: 6faa61c59e55bf56acb8fddbbea8f820a22a1c56 Bug: https://bugs.gentoo.org/909895 Signed-off-by: Sam James <sam@gentoo.org>
* app-shells/bash: mark as LTO-unsafe in particularly old versionsEli Schwartz2024-03-124-4/+28
| | | | | | | | | | | | | | | Due to implicit function declarations, LTO fails to detect the availability of a function and errors out due to an undefined reference at link time. It's fixed in bash 4.0 and on, but the value of backporting the fix to versions of bash that have niche use (people interested in exploring old versions, not people who are looking for the shebang interpreter for their system scripts) is a matter of some question... Closes: https://bugs.gentoo.org/893958 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* app-shells/pwsh: drop old 7.4.0Maciej Barć2024-03-102-406/+0
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* app-shells/fish: add 3.7.0Steffen Winter2024-03-092-0/+122
| | | | | | Closes: https://github.com/gentoo/gentoo/pull/35565 Signed-off-by: Steffen Winter <steffen.winter@proton.me> Signed-off-by: Yixun Lan <dlan@gentoo.org>
* app-shells/powerline: add pep517Matthew Thode2024-03-072-2/+4
| | | | | | Closes: https://bugs.gentoo.org/909895 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
* app-shells/squirrelsh: filter LTO, no SASam James2024-03-051-1/+5
| | | | | | | | | Dead upstream and marked inactive on sourceforge. At some point, IIRC, we hit this in a package too which bundles squirrelsh. Closes: https://bugs.gentoo.org/854876 Signed-off-by: Sam James <sam@gentoo.org>
* app-shells/bash: drop 5.2_p21-r1, 5.2_p21-r2Sam James2024-03-042-749/+0
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* app-shells/bash-completion: Enable py3.12Michał Górny2024-03-032-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* app-shells/bash-completion: Remove myselfMichał Górny2024-03-031-4/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* app-shells/starship: Stabilize 1.16.0 arm64, #922585Arthur Zamarin2024-03-021-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app-shells/peco: drop 0.5.8Sam James2024-03-022-74/+0
| | | | | Bug: https://bugs.gentoo.org/844379 Signed-off-by: Sam James <sam@gentoo.org>
* app-shells/nushell: add 0.90.1Jonas Frei2024-02-282-0/+924
| | | | | | Signed-off-by: Jonas Frei <freijon@pm.me> Closes: https://github.com/gentoo/gentoo/pull/35449 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/fzf: recreate Go dep tarballSam James2024-02-271-2/+2
| | | | | | Much smaller with the cached .zips dropped. Signed-off-by: Sam James <sam@gentoo.org>
* app-shells/autojump: Add Python 3.12 compatibilityMatt Turner2024-02-241-0/+88
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* app-shells/atuin: enable server testsFlorian Schmaus2024-02-231-6/+36
| | | | | | Closes: https://bugs.gentoo.org/925163 Closes: https://github.com/gentoo/gentoo/pull/35495 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/zoxide: new package, add 0.9.4Leonardo Hernández Hernández2024-02-233-0/+293
| | | | | | Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me> Closes: https://github.com/gentoo/gentoo/pull/35433 Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
* app-shells/atuin: drop 17.0.0Florian Schmaus2024-02-212-637/+0
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/atuin: drop 17.1.0-r1Jonas Frei2024-02-212-556/+0
| | | | | | Signed-off-by: Jonas Frei <freijon@pm.me> Closes: https://github.com/gentoo/gentoo/pull/35448 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/atuin: add 18.0.1Jonas Frei2024-02-212-0/+604
| | | | | | | Note that upstream removed the docs from the repository. Signed-off-by: Jonas Frei <freijon@pm.me> Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/atuin: stabilize 17.2.1 for amd64Florian Schmaus2024-02-211-1/+1
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* app-shells/starship: Stabilize 1.17.1 amd64, #925117Sam James2024-02-211-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* app-shells/pwsh-bin: Stabilize 7.4.1 amd64, #924736Sam James2024-02-161-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>