Content-Type: text/x-zim-wiki Wiki-Format: zim 0.4 Creation-Date: 2016-08-21T16:18:55+01:00 ====== Fish Shell ====== Created Sunday 21 August 2016 Some notes for the Fish shell which may become my main one. **Using bc program** The bc program is used to calculate maths. One suggestion is to add the following to the config file: function bc; command bc -l $argd; end I have tried it out in the terminal screen, but not yet in the config file. **Printf** This works in Fish. However, to get the thousands marker to work, use as command printf example command printf "%'.4\n" 45688.789789 will produce 45,688.7898 Note that is this situation printf will round the last figure, which is just as wanted.