iTerm2
iTerm2 copied to clipboard
Improve Fish shell integration script
Hi George, recently I created a standalone plugin based on the Fish integration script. I'd like to submit some of the changes back to iTerm2:
- Replace
[
]
withtest
- Replace
sh -c "exit $last_status"
withreturn $last_status
- Replace
grep
with Fish'sstring match
builtin - Replace
wc
with Fish'scount
builtin - Simplify
iterm2_has_fish_mode_prompt
by directly using its return status
I hope you will like these improvements!