All Questions
Tagged with fish command-line
18
questions
0
votes
2
answers
220
views
alias doesn't work in fish shell on macOS
I've been struggling with an issue that I cannot find mentioned anywhere and I cannot trace down. I can't leverage any of the alias command functionality in fish, which also breaks fish integrations ...
0
votes
1
answer
304
views
Hardcoding current path to alias
I am developing a simple cli-application for timetracking. The idea is to have fish-aliases source r-scripts to create timestamps in a timetable. Like so:
alias checkin='rscript (echo $PWD/checkin.R)'
...
1
vote
1
answer
520
views
Preserve command history in chronological order (in fish)
I have noticed that default behaviour for storing command history is only storing the latest entry.
Typing ls and then ls -al and then entering history would show:
ls -al
ls
Typing ls once more would ...
1
vote
1
answer
709
views
How to remove leading file path information from fish shell tab-complete suggestions?
Using fish, typing ls <tab> in an example directory, the terminal displays:
$ ls
bar/ dir/ foo/
Continuing with d<tab><tab> this becomes:
$ ls dir/
dir/moredir/ dir/otherdir/ ...
0
votes
1
answer
283
views
Is it possible to have an abbreviation in a shell anywhere in a command?
I have a directory which has a really long path. However, I use this directory constantly and I cannot move it (WSL Windows directory). I generally use z to jump around to it quickly which is useful, ...
4
votes
1
answer
3k
views
/bin/bash shell (macOS) throwing `-bash: declare: -A: invalid option` error message at shell start
I briefly changed my default shell on macOS Catalina (10.15.1) to Fish, following the steps in Fish's documentation.
First, I executed > echo /usr/local/bin/fish | sudo tee -a /etc/shells followed ...
1
vote
1
answer
1k
views
how to enable command line navigation shortcuts in fish shell running in iTerm on Mac
Setup: MacOs Mojave, iTerm, Fish shell 3.0.2, using fisher have theme bob-the-fish installed as well.
Would like to be able to use command line navigation keyboard shortcuts such as ctrl-A to get t ...
1
vote
2
answers
2k
views
Running command for bash in fish shell
I'm trying to identify all the large files in my git repo history and came across this command posted here.
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(...
1
vote
0
answers
98
views
fish shell, enter long command
Given the usual size of the terminal window, short commands fit. Ex:
stoqlt@desktop:~ > ls files
However, typing a command that is longer than the free space after the prompt, and reaching the end ...
1
vote
1
answer
181
views
Issue with wrong command entered in fish-shell and it's output
Actually I am using fish these days and I completely switched from bash to fish (with chsh & terminal startup command) but the matter is when I enter a wrong command e.g. qwerty its output is: ...
1
vote
1
answer
225
views
Two questions about adding custom content to config.fish
I have a question about the Fish (Friendly Interactive SHell), so I hope somebody can help me out.
Basically I'd like to customize the fish_greeting message. I can easily get it to say anything I'd ...
1
vote
0
answers
260
views
Why does fish shell create a hidden process in iTerm2
I've moved from bash to fish shell in iTerm2. However, whenever I start iTerm2, I receive the following error message:
A session ended very soon after starting. Check that the command in
profile ...
4
votes
1
answer
963
views
In fish shell, which command is equivalent to bash's compgen?
compgen is a useful command, and fish is an excellent command shell. But I cannot find an equivalent in fish.
I write one by myself:
function compgen --description 'Print a list of documented fish ...
0
votes
2
answers
147
views
Unescaped commandline content in fish shell
Is there a way to get the unescaped content of command line in fish? I mean if command line is like ...
$ ls 'foo' "bar"
... the desired output would be ls 'foo' "bar".
The commandline fish command ...
1
vote
1
answer
649
views
"." command doesn't work in fish
I'm using fish and I'm trying to activate a virtual env, so I tried "source" command which apparently is not available in fish.
And I ended up with this link which says:
". (a single period) is an ...