Skip to content

Commit

Permalink
fix autocomplete if ls uses color by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ernierasta committed Feb 11, 2018
1 parent fde2eb2 commit ad4534b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions complete/x
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ _xbps_installed_reply() {
}

_sv_enabled_reply() {
COMPREPLY=( $( compgen -W '$(ls /var/service/)' -- "$1" ) )
COMPREPLY=( $( compgen -W '$(ls --color=never /var/service/)' -- "$1" ) )
}

_sv_disabled() {
local enabled=$(ls /var/service/)
local availabile=$(ls /etc/sv/)
local enabled=$(ls --color=never /var/service/)
local availabile=$(ls --color=never /etc/sv/)
local tdis=""

for sv in $availabile; do
Expand Down

0 comments on commit ad4534b

Please sign in to comment.