File: _.fish

package info (click to toggle)
fish 3.1.2-3%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 38,672 kB
  • sloc: ansic: 80,259; cpp: 47,069; javascript: 17,087; sh: 6,163; python: 3,429; makefile: 669; perl: 367; objc: 78; xml: 18
file content (22 lines) | stat: -rw-r--r-- 614 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Alias for gettext or a fallback if gettext isn't installed.
#
# Use ggettext if available.
# This is the case on OpenIndiana, where the default gettext
# interprets `\n` itself, so
#    printf (_ 'somemessage\n')
# won't print a newline.
if command -sq ggettext
    function _ --description "Alias for the ggettext command"
        command ggettext fish $argv
    end
else if command -sq gettext
    function _ --description "Alias for the gettext command"
        command gettext fish $argv
    end
else
    function _ --description "Fallback alias for the gettext command"
        echo -n $argv
    end
end