Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [fish]

The fish shell (friendly interactive shell) is an alternate shell for Unix and Unix-like systems (including OS X). Its claims to fame include enhanced syntax highlighting, completion (with auto-suggestions) and high performance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer

Run commands in fish from bash script?

I have a rather long bash script for setting up a server cluster. I'd like to start switching over to fish interpreter but I'd like to do it in steps. Can I keep my bash script as is and add the fish ...
user avatar
  • 364
1 vote
2 answers

How to retrieve first N and last M lines from input in fish?

I have an input like: 1 2 3 4 5 6 7 8 And I'd like to retrieve only N first and M last lines from this input. For example, if N is 2 and M is 4 I want the result to be: 1 2 5 6 7 8 Lines can ...
user avatar
  • 113
7 votes
3 answers

How do I set $TERM permanently in fish shell?

I use the fish shell. I'm trying to run vim inside tmux with the solarized theme, but the colors are broken unless I run: set -lx TERM screen-256color-bce; before running tmux attach. It's annoying ...
user avatar
  • 207
57 votes
5 answers

How can I set environment variable for just one command in fish shell?

In bash, I can do EDITOR=vim crontab -e. Can I get similar effect in Fish shell?
user avatar
  • 683