configs  Check-in [831ff3f6e3]

Overview
Comment:fish: Only use color ls if available
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 831ff3f6e35af23db8e1f8d85c7e2afc93526d0cce9a1d2196967fbac25676da
User & Date: js on 2022-11-27 15:02:44
Other Links: manifest | tags
Context
2022-11-27
23:03
Set MAKEFLAGS on NetBSD check-in: 25e0ed3529 user: js tags: trunk
15:02
fish: Only use color ls if available check-in: 831ff3f6e3 user: js tags: trunk
14:58
fish: Alias gpg to gpg2 check-in: bab44182da user: js tags: trunk
Changes

Modified fish/functions/ls.fish from [9c1f68ea69] to [1a3d96157e].

1
2

3
4


5
6
7
function ls --description 'List contents of directory'
    if type -q gls

        command gls --color=auto $argv
    else


        command ls --color=auto $argv
    end
end
<
|
>

|
>
>




1
2
3
4
5
6
7
8
9

if type -q gls
    function ls --description 'List contents of directory'
        command gls --color=auto $argv
    end
else if command ls --color=auto &>/dev/null
    function ls --description 'List contents of directory'
        command ls --color=auto $argv
    end
end