diff --git a/README.md b/README.md index 11867b2..c8b8108 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ USAGE: nx [arguments] COMMANDS: - list, l List all sites. Supports --enabled or --available filters. + list, l List all sites. Supports --enabled or --disabled filters. enable Enable a site by creating a symlink. disable Disable a site by removing the symlink. edit, e Open site config in $EDITOR. diff --git a/nx.sh b/nx.sh index b6f132a..d6f4acd 100755 --- a/nx.sh +++ b/nx.sh @@ -54,7 +54,7 @@ case $ACTION in # Filtering logic if [[ "$SITE" == "--enabled" && "$status" == "Disabled" ]]; then continue; fi - if [[ "$SITE" == "--available" && "$status" == "${GREEN}Enabled${NC}" ]]; then continue; fi + if [[ "$SITE" == "--disabled" && "$status" == "${GREEN}Enabled${NC}" ]]; then continue; fi table_output+="${display_name};${status}\n" done @@ -132,7 +132,7 @@ ${BOLD}USAGE:${NC} nx [arguments] ${BOLD}COMMANDS:${NC} - ${GREEN}list, l${NC} List all sites. Supports ${GREEN}--enabled${NC} or ${GREEN}--available${NC} filters. + ${GREEN}list, l${NC} List all sites. Supports ${GREEN}--enabled${NC} or ${GREEN}--disabled${NC} filters. ${GREEN}enable${NC} Enable a site by creating a symlink. ${GREEN}disable${NC} Disable a site by removing the symlink. ${GREEN}edit, e${NC} Open site config in ${BOLD}\$EDITOR${NC}.