Fish is a unix shell with a clean design and a limited but powerful feature set.
1
vote
3answers
333 views
Get default ubuntu motd in fish shell
I would like to have Ubuntu's MOTD in the fish shell.
Ubuntu's default is as follows:
That is essentially what I would like to see when open up my terminal (terminator, which loads fishfish)
As ...
1
vote
0answers
284 views
kio sftp does not work but fish works
If I try to initiate an sftp connection from dolphin (or konquerer),
it tells me the password is wrong and asks me for the correct password.
Incorrect username or password Do you want to retry?
...
2
votes
1answer
45 views
Print tab character in fish
In bash I could either do echo -e "a\tb" or echo a$'\t'b.
How do you do this in fish?
1
vote
1answer
49 views
Quoting command substituted value
In bash you would do
touch "foo bar"
rm "$(echo foo bar)"
How would you do that in fish?
This doesn't work for obvious reasons:
touch "foo bar"
rm "(echo foo bar)"
4
votes
1answer
214 views
What's the fastest (CPU time) way to get my current git branch?
I'm trying to improve the performance of my fish prompt, and since my prompt includes my current git branch, I'm wondering if there may be a way to make it faster.
Right now I'm using git ...
11
votes
5answers
9k views
Execute a command once per line of piped input?
I want to run a java command once for every match of ls | grep pattern -. In this case, I think I could do find pattern -exec java MyProg '{}' \; but I'm curious about the general case - is there an ...
1
vote
1answer
133 views
Does Fish have a “magic space”?
I gather that bash has a "magic space" function, where if I do e.g. sudo !!<space> it will blow in sudo ./my_last_command. Does something similar exist in fish?