fish-users Mailing List for The friendly interactive shell
Status: Beta
Brought to you by:
liljencrantz
You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(21) |
Jul
(8) |
Aug
(93) |
Sep
(253) |
Oct
(119) |
Nov
(49) |
Dec
(214) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(123) |
Feb
(86) |
Mar
(35) |
Apr
(94) |
May
(61) |
Jun
(4) |
Jul
(25) |
Aug
(190) |
Sep
(187) |
Oct
(225) |
Nov
(47) |
Dec
(30) |
| 2007 |
Jan
(40) |
Feb
(27) |
Mar
(81) |
Apr
(29) |
May
(31) |
Jun
(17) |
Jul
(11) |
Aug
(32) |
Sep
(6) |
Oct
(60) |
Nov
(20) |
Dec
(4) |
| 2008 |
Jan
(169) |
Feb
(24) |
Mar
(13) |
Apr
(5) |
May
(31) |
Jun
(54) |
Jul
(8) |
Aug
(22) |
Sep
(12) |
Oct
(20) |
Nov
(14) |
Dec
(8) |
| 2009 |
Jan
(18) |
Feb
(116) |
Mar
(20) |
Apr
(15) |
May
(7) |
Jun
(23) |
Jul
(5) |
Aug
(36) |
Sep
(11) |
Oct
(17) |
Nov
|
Dec
(13) |
| 2010 |
Jan
(28) |
Feb
(12) |
Mar
(39) |
Apr
(93) |
May
(10) |
Jun
(15) |
Jul
(5) |
Aug
(16) |
Sep
(33) |
Oct
(38) |
Nov
(102) |
Dec
(94) |
| 2011 |
Jan
(54) |
Feb
(23) |
Mar
(14) |
Apr
(3) |
May
|
Jun
(5) |
Jul
(96) |
Aug
(14) |
Sep
(24) |
Oct
(9) |
Nov
(10) |
Dec
(1) |
| 2012 |
Jan
(17) |
Feb
(10) |
Mar
(21) |
Apr
(15) |
May
(47) |
Jun
(208) |
Jul
(49) |
Aug
(63) |
Sep
(37) |
Oct
(15) |
Nov
(42) |
Dec
(65) |
| 2013 |
Jan
(27) |
Feb
(10) |
Mar
(6) |
Apr
(50) |
May
(118) |
Jun
(43) |
Jul
(29) |
Aug
(37) |
Sep
(29) |
Oct
(20) |
Nov
(44) |
Dec
(40) |
| 2014 |
Jan
(37) |
Feb
(24) |
Mar
(31) |
Apr
(68) |
May
(14) |
Jun
(22) |
Jul
(20) |
Aug
(38) |
Sep
(29) |
Oct
(54) |
Nov
(83) |
Dec
(39) |
| 2015 |
Jan
(12) |
Feb
(16) |
Mar
(30) |
Apr
(40) |
May
(39) |
Jun
(14) |
Jul
(9) |
Aug
(56) |
Sep
(15) |
Oct
(12) |
Nov
(7) |
Dec
(56) |
| 2016 |
Jan
(27) |
Feb
(9) |
Mar
(27) |
Apr
(12) |
May
(20) |
Jun
(25) |
Jul
(19) |
Aug
(14) |
Sep
(13) |
Oct
(16) |
Nov
(38) |
Dec
(11) |
| 2017 |
Jan
(26) |
Feb
(13) |
Mar
(9) |
Apr
|
May
(10) |
Jun
(18) |
Jul
(11) |
Aug
(69) |
Sep
(62) |
Oct
(48) |
Nov
(18) |
Dec
(9) |
| 2018 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
(14) |
Jun
(10) |
Jul
(2) |
Aug
(3) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
(6) |
| 2019 |
Jan
(6) |
Feb
(11) |
Mar
(23) |
Apr
(1) |
May
(10) |
Jun
(8) |
Jul
(4) |
Aug
(9) |
Sep
(7) |
Oct
(4) |
Nov
|
Dec
(5) |
| 2020 |
Jan
(9) |
Feb
(5) |
Mar
|
Apr
(3) |
May
(2) |
Jun
(8) |
Jul
(6) |
Aug
(13) |
Sep
(3) |
Oct
(8) |
Nov
(3) |
Dec
(4) |
| 2021 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(2) |
May
(10) |
Jun
|
Jul
(1) |
Aug
(7) |
Sep
|
Oct
(7) |
Nov
|
Dec
(3) |
| 2022 |
Jan
|
Feb
(5) |
Mar
(6) |
Apr
(4) |
May
(4) |
Jun
(1) |
Jul
(3) |
Aug
|
Sep
(5) |
Oct
(2) |
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(3) |
Mar
(5) |
Apr
(1) |
May
(3) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(5) |
Dec
(4) |
| 2024 |
Jan
(4) |
Feb
(1) |
Mar
(4) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(1) |
| 2025 |
Jan
(10) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
|
From: Johannes A. <ac...@gm...> - 2025-09-27 20:45:34
|
See https://github.com/fish-shell/fish-shell/releases/tag/4.1.0 I can send a plaintext version of that changelog but I'd imagine that's less useful than a version with clickable links |
|
From: Johannes A. <ac...@gm...> - 2025-09-18 08:23:34
|
See https://github.com/fish-shell/fish-shell/releases/tag/4.0.8 |
|
From: Johannes A. <ac...@gm...> - 2025-09-12 10:44:44
|
See https://github.com/fish-shell/fish-shell/releases/tag/4.0.6 |
|
From: David A. <za...@uc...> - 2025-04-20 15:37:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi all, I'm pleased to announce the release of fish 4.0.2. This is a bugfix release for fish 4.0.0, which it appears I never actually announced on the list - the message was signed and ready to go, but still in my drafts. Here's the announcement from that message: > This release of fish features significant improvements in terminal > support which allow the use of many more key combinations, and a better > way of binding these combinations. There is also a new way to control > whether commands are added to the history, and a number of other new > features. > > There are a number of backward-incompatible changes, hence the increase > in the major version number. It is more important than ever to read the > release notes - see below! > > The internals of fish have been rewritten from C++ to Rust, which has > generated a lot of interest and publicity, but should only directly > impact developers and packagers. The tarball and packages for Linux, macOS and Windows will soon be available from https://fishshell.com/ and the release notes will be at https://fishshell.com/release_notes.html - but in the meantime I have uploaded the release to the GitHub releases page at: https://github.com/fish-shell/fish-shell/releases/tag/4.0.2 As a new major version, there is a new release:4 channel, so to receive the newest Linux packages you may need to update your configuration. If you'd like to use this method, the links are: https://launchpad.net/~fish-shell/+archive/ubuntu/release-4 (Ubuntu) https://software.opensuse.org//download.html?project=shells%3Afish%3Arelease%4A3&package=fish (Debian, Fedora, and openSUSE) A pull request for Homebrew has been merged, making the new version available via upgrading or running `brew install fish`. For our distributors, the tarball is available at https://github.com/fish-shell/fish-shell/releases/download/4.0.2/fish-4.0.2.tar.xz The SHA-256 sum is 6e1ecdb164285fc057b2f35acbdc20815c1623099e7bb47bbfc011120adf7e83 and the tarball has a signature from my personal PGP key, as does this message. It's my pleasure to welcome the huge number of new contributors who have commits in the tree since 3.7.0: Abdo Omar, Abel Chalier, Alexei Mikhailov, Ambrose Bonnaire-Sergeant, Andrew Neth, Anurag Singh, Armin Brauns, Bartłomiej Maryńczak, BrewingWeasel, César Sagaert, ClaXXX, Clemens Wasser, Daniel Fleischer, Demian Ferreiro, Dezhi Wu, EmilyGraceSeville7cf, Francois Laithier, Giorgio Gallo, Grant Hutchins, Harmen, Hauke Strasdat, Himadri Bhattacharjee, Jacob Chapman, Jadi, Jasmin Oster, Jean-Bernard Valentaten, Joan Bruguera Micó, Joe Adams, John, Jonathan Krebs, Josef Litoš, Kaley Main, Kemel Zaidan, Kendell R, Kerim, Klaus Hipp, Laurențiu Nicola, LingMan, Looouiiis, Lucas Garron, Lzu Tao, Manlio Perillo, Manuel Krebs, Max Jacobson, Michal Koutný, Munzir Taha, Nadir Fejzic, Neeraj Jaiswal, Nguyen Huu Kim, Nihaal Sangha, Nikita Bobko, Peter Yates, Pi-Cla, PolyMeilex, Rebecca Turner, Rikuki IX, RomainGiraud, Ryan Patterson, Sam Bull, Samuel Collins, Schlomo Schapiro, Septatrix, Shaik Azhar Madar, Shou Ya, Simon Junod, Steve Walker, TAKAHASHI Shuuji, Thayne McCombs, Theodor Tonum, Theodore Ehrenborg, Thomas Queiroz, Trishank Karthik Kuppusamy, Unbelievable Mystery, Verte, Victor Song, Yonas Yanfa, Zapeth, a-kenji, ahaoboy, amiyzku, bitraid, cornmander, diniamo, esdmr, fossdd, hdhoang, idealseal, iselda aiello, kerty, kpbaks, metamuffin, phanium, tesuji, triallax, visrosa, vp2177, yinm, and 王宇逸 Thanks also go to our returning contributors: Adam J. Stewart, Agatha Lovelace, Akatsuki Rui, Alex Chan, Amos Bird, Amy Grace, Andre Eckardt, Andy Hall, Asuka Minato, AsukaMinato, Axlefublr, Benjamin Kellermann, Branch Vincent, Charlotte, Chris Wendt, Christian Fersch, Colin Woodbury, Damien Picard, Daniel Bretoi, Daniel Kahn Gillmor, Delapouite, Dmitriy Shishkov, Dmitry Gerasimov, Eddie Lebow, Emily Grace Seville, Eric N. Vander Weele, Fabian Boehm, Felix Luciano Salomon, Florian Meißner, Gabriel Górski, Gregory Anders, Grzegorz Milka, Henrik Hørlück Berg, Husam Harazi, Ian Chamberlain, Ikko Eltociear Ashimine, Ilya Grigoriev, Ivan Kovnatsky, Jan Tojnar, Jannik Vieten, Jason Nader, Jay, Jo, Johannes Altmanninger, Johannes Stölp, Kevin F. Konrad, Kevin Cali, Kevin F. Konrad, Kid, Lia Lenckowski, Mahmoud Al-Qudsi, Marcelo Mendes Spessoto Junior, Marcin Wojnarowski, Mark Huang, Mathijs Henquet, Mathis Chenuet, Maurizio De Santis, Miha Filej, Nater0214, Nethum Lamahewage, NextAlone, Nicholas Rodrigues Lordello, Nunzio Cicone, Oliver Schrenk, Paiusco, Paul Gier, Paul Ouellette, Pavel savchenko, Paweł Piątkowski, Peter Collingbourne, QianChenglong, Quinten Roets, Robert Szulist, Rocka, Roland Fredenhagen, Rudolf Lovrenčić, SanskritFritz, Shun Sakai, Simon Börjesson, The0x539, Thomas Klausner, Wadii Hajji, Wenhao Ho, Wolfgang Müller, Wout De Puysseleir, Xiretza, Yuntao Zhao, Zehka, abp, bagohart, elyashiv, exploide, figurantpp, fortifiedhill, ghostflyby, jydeng, lengyijun, matt wartell, mattmc3, may, mhmdanas, nat-418, pd, rymrg, sigmaSd, tangowithfoxtrot, yanshay, ysthakur, zuisong, and the brains of the entire operation, ridiculousfish. It may be a little Rusty, but we hope you enjoy this release of fish. Thanks, David Adam fish committer za...@uc... -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEnh3gZzzMAykZ0YUmwLlpspdOiI4FAmgFEBkACgkQwLlpspdO iI7A5g//bLW2YBOz1LQfmgH1TcQh2heVPwadyw3Pkvxf1lToR9irRP7Oq9WZYCgz hH3zn2Iljatrsvn03OR+OVyoFo9ZE9Wixi5opw6wtpWBVHY9OstFuTV2RbHL79s+ Ch0fXNiTkgoSaSe2s+JY9OTeVQcy9GxYzB17JpqgmNgepzLBQqSvbnA5ejc0tNES lEvSfNw8Fyj8blCvos4irxF/mdYUXyYhWzaSBnb3F9uLDEFbuWxh4Ha8JYdN9Yaw jecIgtw44ecOPCzrGNbGguH/JjfGGcVXHK3Jac49mt4cmAu2AgGUM60p4pn+wgv/ ad+NqrSOgsYOFm6ZJdise/My2eDrUYGYimZG3tLnr33DrW4rXda2eJNgXXyxbOka Ys4ID3PvYiEXk1pXMYxJFIBJcuudpw7mkdmjvRdvEbO+SPM8QRj9ga32Ao2Z4pKM ME1AVVw8cLFiMtgFKoiEnl2+iLZvvp283isGjCkCma77PbFC+ozeUwaEZaMyZCoy OzSBzhNG5TAnsvgDT7a2zH+LI0WveN2a7UWA+C1YR/TAASTZCJTECBSwLnutrI/D ROs3aYx5t1B1JHHIlcX9S96cyahfGn6haJrXnjaaksjLxYgyrQNFS7fG7ye8PlM2 mT4Q+bIlYNrq5z6lJlZPDHqEUz0AviODAGYMTUF7YYjlpzNdg3I= =/aLn -----END PGP SIGNATURE----- |
|
From: Manfred L. <man...@po...> - 2025-01-12 11:49:58
|
Hi Xavier,
On 1/7/25 19:46, Xavier Maillard wrote:
> Hello
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
>
> I am a new fish user trying to figure out all the concepts and features.
>
> I browse many github repositories to get some inspiration.
>
> Many people seems to mixup abbreviations and functions. I mean, some functi=
> ons could have been abbreviations.
>
For me it is like this.
For the simple stuff I use aliases.
Here some examples
```
alias lsbig "ls -s size -l | tail -n 10"
...
if command -sq dnf
alias dnfs="dnf search"
alias dnfi="sudo dnf install"
alias dnfr="sudo dnf remove"
alias dnfl="sudo dnf list"
alias dnfu="sudo dnf upgrade"
alias dnfli="sudo dnf list installed"
alias dnfc="sudo dnf clean all"
alias dnfgi="sudo dnf groupinstall"
alias dnfgl="sudo dnf grouplist"
alias dnfgr="sudo dnf groupremove"
end
```
For more complex stuff I use functions
Examples
```
function mkcd
set -l newdir $argv[1]
mkdir -p $newdir
cd $newdir
end
```
```
# quick way to show number of files, dirs and symlinks
# in a directory tree
function filestat
set -l start_dir $argv[1]
if [ -z $start_dir ]
set start_dir '.'
end
set -l numf (find $start_dir -type f | wc -l)
set -l numd (find $start_dir -type d | wc -l)
set -l numl (find $start_dir -type l | wc -l)
echo "#dirs=$numd, #files=$numf, #links=$numl"
end
```
I use abbreviations only for stuff like this
```
abbr --add --position anywhere G '| grep'
```
Here I can type, for example: `ls -l G` and a blank and it gets expanded to
`ls -l | grep`
But your mileage may vary. 😁
--
Manfred
|
|
From: Xavier M. <x...@ma...> - 2025-01-10 18:30:22
|
Rens Oliemans <ha...@re...> wrote: > "Xavier Maillard" <x...@ma...> writes: > > > I just need to understand how things should be done. > > Try things out, and get a feel for your preference: the docs describe three ways > of doing it and I don't think that there are very clear ways of how it "should" > be done. Actually, that's my conclusion too. Just that, AFAICS, only functions can be exploited to do complex things. Right ? -- -Xavier |
|
From: Rens O. <ha...@re...> - 2025-01-08 08:44:12
|
"Xavier Maillard" <x...@ma...> writes: > I just need to understand how things should be done. Try things out, and get a feel for your preference: the docs describe three ways of doing it and I don't think that there are very clear ways of how it "should" be done. Using 'function' has two caveats that 'alias' fixes (and 'abbr' doesn't have), so preferring alias/abbr over function would be my advice, but that's also my preference: if you like the explicitness of function, go for it. |
|
From: Xavier M. <x...@ma...> - 2025-01-08 04:28:20
|
Rens Oliemans <ha...@re...> wrote: > "Xavier Maillard" <x...@ma...> writes: > > > I am a new fish user trying to figure out all the concepts and features. > > Welcome! I'm also a somewhat new fish user, but here's what I use--you can find > my dotfiles at > https://git.sr.ht/~rensoliemans/dotfiles/tree/main/item/fish/dot-config/fish > Thank you very much for sharing this with me. Things become clearer as I progress in my discovery and reading of the documentation. -- -Xavier |
|
From: Xavier M. <x...@ma...> - 2025-01-08 04:06:44
|
Hello, MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable makes sense. I plan migrating some scripts I am currently using in zsh as f= ish functions/scripts. Notably, I am using mblaze for my mails and I am pretty sure many things I = am doing today with complex scripts could be done as a fish flugin with fun= ctions, abrreviations and completions. I just need to understand how things should be done. --=20 -Xavier |
|
From: Greg R. <gre...@um...> - 2025-01-08 03:16:26
|
On Tue, Jan 7, 2025, at 9:42 PM, Xavier Maillard wrote: > I already have read that. My question was really this one: is it fine > to use ‘function’ as a mean to define what could have been a simple > abbreviation. > > For example: > > function wget --description 'alias wget=wget > --hsts-file="$XDG_DATA_HOME/wget-hsts"' > command wget --hsts-file="$XDG_DATA_HOME/wget-hsts" $argv > end > > Or > > abbr -a wget 'wget --hsts-file="$XDG_DATA_HOME/wget-hsts"’ > > Which one is okay/preferred ? I think that they are both okay. I think the preference is for you to decide. I think that the documentation that I mentioned at https://fishshell.com/docs/current/interactive.html#abbreviations explains the difference: "The advantage [of abbreviations] over aliases [and functions] is that you can see the actual command before using it, add to it or change it, and the actual command will be stored in history." If you want that feature, use an abbreviation. If you don't want that feature, use an alias/function. If you don't care then you don't care. |
|
From: Xavier M. <x...@ma...> - 2025-01-08 02:42:23
|
Hello, > Le 7 janv. 2025 à 21:06, Greg Reagle <gre...@um...> a écrit : > > You might be interested in abbreviations which has a man page called abbr, or see https://fishshell.com/docs/current/interactive.html#abbreviations > > The man page for alias notes that it is a wrapper for functions. See https://fishshell.com/docs/current/language.html#defining-aliases I already have read that. My question was really this one: is it fine to use ‘function’ as a mean to define what could have been a simple abbreviation. For example: function wget --description 'alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts"' command wget --hsts-file="$XDG_DATA_HOME/wget-hsts" $argv end Or abbr -a wget 'wget --hsts-file="$XDG_DATA_HOME/wget-hsts"’ Which one is okay/preferred ? Thank you |
|
From: Greg R. <gre...@um...> - 2025-01-07 20:26:23
|
You might be interested in abbreviations which has a man page called abbr, or see https://fishshell.com/docs/current/interactive.html#abbreviations The man page for alias notes that it is a wrapper for functions. See https://fishshell.com/docs/current/language.html#defining-aliases |
|
From: Rens O. <ha...@re...> - 2025-01-07 20:20:40
|
"Xavier Maillard" <x...@ma...> writes: > I am a new fish user trying to figure out all the concepts and features. Welcome! I'm also a somewhat new fish user, but here's what I use--you can find my dotfiles at https://git.sr.ht/~rensoliemans/dotfiles/tree/main/item/fish/dot-config/fish > Many people seems to mixup abbreviations and functions. I mean, some functi= > ons could have been abbreviations. > So, what's the correct way to define an "alias" ? I would say that there are three ways: function ls command ls --color=auto $argv end alias ls="ls --color=auto" abbr --add ls ls --color=auto You can check out these docpages to read more about them: - https://fishshell.com/docs/current/language.html#syntax-aliases - https://fishshell.com/docs/current/interactive.html#abbreviations - https://fishshell.com/docs/current/cmds/alias.html As for the "correct" way: I don't think there is one. I prefer 'abbr' since I like that it expands while I type: it's clearer what it does. For some very long commands I prefer to use 'alias'. I never really use 'function' for this because you need to remember to start with 'command' and end with '$argv'. My dotfiles actually use 'alias' often, but I'm starting to love abbreviations more and more. They can also be very powerful: check out the 'multicd' abbr from the first link, and the '!!' abbr from the second one. Here's a short asciinema that shows how they work: https://asciinema.org/a/nSZWuM8RmZ2etbDK5hoinvTjn -- Best, Rens |
|
From: Xavier M. <x...@ma...> - 2025-01-07 19:01:34
|
Hello MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am a new fish user trying to figure out all the concepts and features. I browse many github repositories to get some inspiration. Many people seems to mixup abbreviations and functions. I mean, some functi= ons could have been abbreviations. So, what's the correct way to define an "alias" ? Thank you. --=20 -Xavier |
|
From: David A. <za...@uc...> - 2024-12-17 18:31:09
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi everyone, I am pleased to say the next release of fish is on its way. We have made some major changes to fish, although mostly around the internal implementation. fish is now written in Rust rather than C++, and as a result there have been some changes in platform support. The major version has been bumped to 4 to delineate this. Because of the big shift, we are doing a beta release: 4.0b1/4.0.0-beta.1. Testing on all platforms is greatly appreciated. There is more information at https://fishshell.com/blog/fish-4b/ The release notes are available at: https://fishshell.com/docs/4.0b1/relnotes.html Please make sure you read them before upgrading, and be aware that they are also in beta! The release is available in the following ways: * For OS X: through Homebrew with `brew install --devel fish-shell/fish-beta-4/fish` or via packages at https://github.com/fish-shell/fish-shell/releases/tag/4.0b1 * For Ubuntu Linux: packages & PPA at http://launchpad.net/~fish-shell/+archive/beta-4 * For Debian, Fedora, openSUSE and RedHat/CentOS: packages and repository at http://software.opensuse.org/download.html?project=shells%3Afish%3Abeta%3A4&package=fish * For other platforms: source tarball at https://github.com/fish-shell/fish-shell/releases/download/4.0b1/fish-4.0b1.tar.gz (SHA-256 sum is 534334e10f85722214e9daff82a57cc3501235523f16f8f131c2344e4ec98da7, and the tarball has a detached signature from my personal PGP key, which signs this message). * From Git: using the Integration_4.0.0 branch (tagged as 4.0b1). You can report problems with the beta: * To this mailing list * In the GitHub issue tracker at https://github.com/fish-shell/fish-shell/ You can get help with fish: * On this mailing list, <fis...@li...>; or * At https://gitter.im/fish-shell/fish-shell using the Gitter chat room. Your feedback is appreciated! David Adam fish committer za...@uc... -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEnh3gZzzMAykZ0YUmwLlpspdOiI4FAmdhvxsACgkQwLlpspdO iI7tew//f/vdCHmQTDEm2aw3bAB+yCbgLuhxxz0hFfCIGGNb2xT8EUy4/IAKAAb2 BpHXQFooPOpQglfAtRZ4R2GZiD91eVVctGKhMMQnPcrDGPftPur9Jqa+5UHSiDRt Mhj77/ilQLC+ZGbIVYmS7aokuya8dWJlL4ICjngQlHAeTNIq1i/qvJ6MwPAZx4yE yJR1/0zMS5aOCecwDO9fcB+U9eroa3+g5bu8TY5kZvE2NnxUjzPbovjtGIeBpO2u t8rrvFO54RJOfbQlG5jn5ls2ON6oA8xcDrFAVADl9V8SwvDlx3Ul8Hkm99mMQXjA 7mo4n7hHdM2yI02oXGXchv1D94Tvrmfh0NDT4nMOgi7NpzQwMxyWFFmvg4rgve3Y uuCNa5VpjG1jToakRRHPJjv2UJWX9X9mwid7unaBGvbHmYfjYAQ9V+hjpnX8yaCh B1W5csCeSXixy4yJD/P36w6DB7c/A6QZyrhEmM75orRqSzX1dPz7cZbz/TFGi2K4 4P67GYZ1X2e0d+5Gn6Qmaz0bVOMbra7kZFDbos3oFYJafhXl1xjurgD8F6MWC/Ns YpaYmhSFKIiwgMJ9oU3qRtBnQHQlM67tLu8LWCcZKsMGRemgTzM/szWLXw6Ib2Xb rhJBxV9kNQQbbyBsd6GR/xbuWeaK2sFK5XB1Oa49KF6GGSNqqqE= =2HpU -----END PGP SIGNATURE----- |
|
From: Bob W. <us...@ka...> - 2024-10-03 15:46:42
|
On Thu, 3 Oct 2024 22:21:38 +0800 (AWST) David Adam wrote: > On Thu, 3 Oct 2024, Bob Williams wrote: > > New fish user here. When I cd to another directory, the word main in > > parentheses appears in the prompt. eg. > > > > ~> cd music > > ~/music (main)> > > > > What does it signify? > > That's the current git branch. The default prompt includes a > fish_vcs_prompt function, which in turn calls fish_git_prompt, and > this shows the current branch by default. > > Hope that helps! > > David Adam > za...@uc... > It does. Thank you. -- Bob Williams |
|
From: David A. <za...@uc...> - 2024-10-03 14:40:25
|
On Thu, 3 Oct 2024, Bob Williams wrote: > New fish user here. When I cd to another directory, the word main in > parentheses appears in the prompt. eg. > > ~> cd music > ~/music (main)> > > What does it signify? That's the current git branch. The default prompt includes a fish_vcs_prompt function, which in turn calls fish_git_prompt, and this shows the current branch by default. Hope that helps! David Adam za...@uc... |
|
From: Bob W. <us...@ka...> - 2024-10-03 14:14:14
|
Hi, New fish user here. When I cd to another directory, the word main in parentheses appears in the prompt. eg. ~> cd music ~/music (main)> What does it signify? -- Bob Williams |
|
From: Simon L. <sf...@su...> - 2024-06-03 09:37:02
|
On 6/3/24 1:41 PM, Luciano ES wrote: > Can fish 2.x in one installation share the configuration files > in a shared directory/partition with fish 3.x in another installation? > In practice I found there was enough syntax differences that I just migrated everything to fish 3 at the same time, which was a very long time ago now. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B |
|
From: Luciano ES <lu...@gm...> - 2024-06-03 04:11:39
|
Can fish 2.x in one installation share the configuration files in a shared directory/partition with fish 3.x in another installation? -- Luciano ES >> |
|
From: Johannes A. <ac...@gm...> - 2024-03-21 07:52:26
|
On Wed, Mar 20, 2024 at 09:51:06PM +0000, Peter Flood wrote:
> Hi all,
>
> Does anyone know a way to get gcloud (& gsutil etc etc) completions working
> in fish? There are bash and zsh completions, any way to convert them?
Ideally these commands provide native fish completions, (if they're
use a framework like Cobra, that should be given) but you can also
reuse bash completions like below.
Would be nice to be able to use something like this as general fallback
but I don't know yet if this is robust enough.
Also fish probably still wants to know whether to include file
completions or not (as indicated by the `-f` option)
for cmd in gcloud gsutil
complete $cmd -f -a '(
bash -c \'
get_completions() {
local completion COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS COMPREPLY=()
# load bash-completion if necessary
declare -F _completion_loader &>/dev/null || {
source /usr/share/bash-completion/bash_completion
}
COMP_LINE=$*
COMP_POINT=${#COMP_LINE}
COMP_WORDS=("$@")
[[ ${COMP_LINE[@]: -1} = " " ]] && COMP_WORDS+=("")
COMP_CWORD=$(( ${#COMP_WORDS[@]} - 1 ))
completion=$(complete -p "$1" 2>/dev/null | awk "{print \\$(NF-1)}")
[[ -n $completion ]] || {
_completion_loader "$1"
completion=$(complete -p "$1" 2>/dev/null | awk "{print \\$(NF-1)}")
}
[[ -n $completion ]] || return 1
"$completion"
printf "%s\\n" "${COMPREPLY[@]}" | sed "s/ $//"
}
get_completions "$@"
\' -- (commandline -xpc 2>/dev/null || commandline -opc) "$(commandline -t)"
)'
end
|
|
From: Peter F. <in...@wh...> - 2024-03-20 22:34:24
|
Hi all, Does anyone know a way to get gcloud (& gsutil etc etc) completions working in fish? There are bash and zsh completions, any way to convert them? Thanks |
|
From: David A. <za...@uc...> - 2024-03-19 06:15:52
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi all, I'm pleased to announce the release of fish 3.7.1, a release with a few fixes for issues discovered in fish 3.7.0 and some improvements from ongoing development. In particular, there was a problem with wildcards in fish 3.7.0 where under some circumstances paths that did not exist were generated. The tarball and packages for Linux, macOS and Windows will soon be available from https://fishshell.com/ and the release notes will be at https://fishshell.com/release_notes.html - but in the meantime I have uploaded the release to the GitHub releases page at: https://github.com/fish-shell/fish-shell/releases/tag/3.7.1 The Linux packages will be submitted to the release:3 channel, and if you are using your system package manager to install fish from these channels a new version will make its way to you soon. If you'd like to use this method, the links are: https://launchpad.net/~fish-shell/+archive/ubuntu/release-3 (Ubuntu) https://software.opensuse.org/download.html?project=shells%3Afish%3Arelease%3A3&package=fish (Debian, Fedora, openSUSE and CentOS) A pull request for Homebrew has been submitted, making the new version available soon via upgrading or running `brew install fish`. For our distributors, the tarball is available at https://github.com/fish-shell/fish-shell/releases/download/3.7.1/fish-3.7.1.tar.xz The SHA-256 sum is 614c9f5643cd0799df391395fa6bbc3649427bb839722ce3b114d3bbc1a3b250 and the tarball has a signature from my personal PGP key, as does this message. Thanks to everyone who reported their experiences with fish 3.7.0, and who has contributed fixes and improvements to the project. Thanks, David Adam fish committer za...@uc... -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEnh3gZzzMAykZ0YUmwLlpspdOiI4FAmX5JBUACgkQwLlpspdO iI4XmxAAgNkaEr222w3e8UpSANIOA2E70Ww1Eoz8feN8SYmJGsoV3WWDuc/u9/PK iKgD8g9uPPWNM0giupJJ630/9QWbdjdSbWlgH1J+pTw83tMyN3qqcCT15Ksw/eqA zWlpfH1jLtk3QzlUZke+gL7Lg6pjQZaJ1vP5Nx/THUkRH1BuL9hiUqGyqvt56MPv 6YbLySeO5nJBpCQjV43PFq5oYRV2YzU5VGoahHfRDyuPvNFNXz/D56DyNE4VclaF xWseGYIpzBpdArcFxRRiH9csaCHz5ACQhxA22PV0duaOcnO0UYIjCU6hbAR0MONe r+Df/kBglGQs+fSOtpAgDxP8n7N+Ugg8J3ucNUUZd3ta38Oeh71DYdyrUBqwd6Tp mSC0G3lIsjdhDnJpNp/2djC+QNzusApEPfsC/uYvG+KpIPCL19EU1wOg1HZSyooc 0DoCmjaG9+21058Q1rBGigb7L5Gx37DclaqlkRidJtGJH0Em5P2SDKGSDe+JMhBV Vi5oqfvW6HontY/iI2Uy1CSfZzM7sGn2B0IOksejL2SBks53mS03TAMmzad8sEby RKlRIF/PDC8THa4ES4/0WXt3hLIAPlmWy1CYjyoX2AE3tmWNMtk8yOojJFUoA70f YT31pv5rZ5E99DXhXXxnF7PatzV99sM6QbeIQtcLcUdDwsWThuY= =a+9x -----END PGP SIGNATURE----- |
|
From: Matt O. <he...@ma...> - 2024-03-06 08:48:19
|
Hello, There is currently an issue with the auto-completion included with yadm (a dot file manager). Yadm works by using a git repo to manage your dot files. It has some of it’s own commands (yadm bootstrap, for example) but the majority of the functionality is essentially a wrapper around the git command. Yadm includes fish auto-completion, which you can see here: https://github.com/TheLocehiliosan/yadm/blob/0a5e7aa353621bd28a289a50c0f0d61462b18c76/completion/fish/yadm.fish As you can see, it’s pretty simple, but there is currently an issue with the yadm add commands auto-completion taking an extremely long time. The problem stems from the yadm add auto-completion coming from this line of the yadm.fish file: complete -c yadm -w "git --git-dir=$GIT_DIR" The GIT_DIR path will point to a git repo which acts at the root of the current users home folder. This means that when the wrapped git add completion runs it tries to get a list of all untracked files in the home folder, which is massive. This is the part of the git completions which is causing issues: https://github.com/fish-shell/fish-shell/blob/80133c4bc65b33ac27ede72c929eeb9a8e64a9f0/share/completions/git.fish#L102-L511 The same problem happened with zsh completions in yadm. The fix for that was to override the behaviour of just the yadm add command to be more specific for yadm, but leave all the other completions as a wrapper around git. @joshzcold has tried to do the same for fish, but it doesn’t seem like it’s possible to use the complete -w to wrap a command, but also override some of them. The wrapper seems to always overwrite the ones you provide: https://github.com/TheLocehiliosan/yadm/issues/359#issuecomment-1961633980 Are we correct that this isn’t possible, or is there a clean way to say that yadm wraps git but also provides its own completions for certain commands? Thanks, Matt |
|
From: David A. <za...@uc...> - 2024-02-08 02:09:47
|
Hi all, I would like to welcome our two new committers to the fish-shell organisation, Henrik Hørlück Berg (@henrikhorluck) and @Xiretza. Their contributions to the port to Rust have been been greatly appreciated. It occurs to me that we have not had an update on the fish committers list for some time, so here is the full list including GitHub handles: Aaron Gyes @floam David Adam @zanchey Mahmoud Al-Qudsi @mqudsi Kamila Borowska @KamilaBorowska Peter Ammon @ridiculousfish Lily Ballard @lilyball Xiretza @Xiretza Fabian Boehm @faho Johannes Altmanninger @krobelus Henrik Hørlück Berg @henrikhorluck Thanks, as always, to all our contributors. David Adam za...@uc... |