I was hoping the list was more active with people asking questions and such,
but I guess if I want that, I should start asking.
Anyway, is there any sort of writeup anyone’s done on something like “fish for
bash users” or similar?
fish seems to have some different ideas about how to do things (preferring
functions in individual files over aliases or functions in a single rcfile for
one) and I’m a little hesitant to just go whole nelly on it. Also, I’m not sure
what the advantage is to creating a whole lot of files each containing one to
three lines in the functions folder.
So, for example, Here are a few of the different sorts of things I have in
bashrc:
alias lapp='osascript -e "tell application \"System Events\" to get name of
(processes where background only is false)"'
not sure where to even start there.
function gbz () {
for i in `ls | grep ".bz2"` ; do bzgrep -H "$*" $i; done
}
If I am understanding the documentation, this would be rewritten into
…/functions/gbz.fish as
function gbz
for i in *.bz2
bzgrep -H $argv $i
end
end
Yes? How to I pass all the args properly escaped or quoted? Just “$argv” like
in the original? What if I wanted to check that there was only one argv? Or
similarly what if I wanted to parse argv[1] and argv[2] separately?
How about this one?
function duh () {
du -s * | sort -n | cut -f 2- | while read a; do du -sh "$a"; done
}
And what about these?
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward’
I’m guess they are unnecessary; these as well, I’d guess.
bind "set show-all-if-ambiguous on"
bind "set completion-ignore-case on”
I have about 100 aliases in .bashrc and quite a few functions. Any sort of
shortcut to split these out into fish functions files? (I mean, it is not a
super complicated script to get the files created with the bass syntax,
obviously you will have to go in to each file and fishily it.)
--
You start a conversation you can't even finish it
You're talkin' a lot, but you're not sayin' anything
When I have nothing to say, my lips are sealed
Say something once, why say it again?
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users