as explained in https://stackoverflow.com/a/2763014/2891692
i created for days many alias in my config file ~/.config/fish/config.fish
and it works.
every new alias i add today don't work.
Example of not working alias:
alias bla = "cd ~/Desktop"
alias bla2 = "ls -a"
but the alias i added before today. for example:
alias gitStatus="git status"
full ~/.config/fish/config.fish
here:
function fish_greeting
echo 'try nr 5'
end
alias bla2 = "ls -a"
alias gitStatus="git status"
each try i update the welcome message. this works
How could i fix this?
Error
if used alias bla = "cd ~/Desktop"
bla
Command 'bla' not found, did you mean:
command 'bls' from deb bacula-sd (9.4.2-2ubuntu5)
...
if type part of the alias is first red. but its not a error (confused me first)
Operating System:
Kubuntu 20.04
KDE Plasma Version: 5.18.8
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.13.0-41-generic
OS Type: 64-bit
=
, does it work if you write the alias with no spaces, like this:alias bla2="ls -a"
?config.fish
. That's the "bash/zsh" way of doing things -- Fish has better methods available.