]> Sergey Matveev's repositories - nnn.git/commitdiff
Option -c is gone
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 4 Dec 2018 03:58:04 +0000 (09:28 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 4 Dec 2018 03:58:04 +0000 (09:28 +0530)
scripts/auto-completion/bash/nnn-completion.bash
scripts/auto-completion/fish/nnn.fish
scripts/auto-completion/zsh/_nnn
scripts/quitcd/quitcd.csh

index 6eaba968ee7fcb410e67dd9a0bae25674fece518..b076de0418d5275a6757262151bd67b637ee41e7 100644 (file)
@@ -11,7 +11,7 @@ _nnn () {
     local cur=$2 prev=$3
     local -a opts opts_with_args
     opts=(
-        -c
+        -C
         -e
         -h
         -i
@@ -20,7 +20,6 @@ _nnn () {
         -v
     )
     opts_with_arg=(
-        -c
     )
 
     # Do not complete non option names
index 47c9f8ecb659bad591de0a5660c411aa68909ca6..924b842eed2dfa1210dc68487932acdbb8bea372 100644 (file)
@@ -5,7 +5,7 @@
 #   Arun Prakash Jana <engineerarun@gmail.com>
 #
 
-complete -c nnn -s c -r -d 'specify dir color, disables if N>7'
+complete -c nnn -s C    -d 'disable directory color'
 complete -c nnn -s e    -d 'use exiftool instead of mediainfo'
 complete -c nnn -s h    -d 'show this help and exit'
 complete -c nnn -s i    -d 'start in navigate-as-you-type mode'
index 746dc415b62b75b364e37d52b3233b594a96d708..8fcf4fa9b0a3d51d1e6e3d728f3efa79cebe8c7f 100644 (file)
@@ -9,7 +9,7 @@
 setopt localoptions noshwordsplit noksharrays
 local -a args
 args=(
-    '(-c)-c[specify dir color, disables if N>7]:color code'
+    '(-C)-C[disable directory color]'
     '(-e)-e[use exiftool instead of mediainfo]'
     '(-h)-h[show this help and exit]'
     '(-i)-i[start in navigate-as-you-type mode]'
index afa5fa694a16865dce9108afe01debb91d7f2ca6..8feabcfe41c1c691e3b432f8313706f11ca5d8ed 100644 (file)
@@ -1,3 +1,3 @@
 setenv NNN_TMPFILE /tmp/nnn
 
-alias n 'nnn -c 2; source "$NNN_TMPFILE"; rm "$NNN_TMPFILE"'
+alias n 'nnn; source "$NNN_TMPFILE"; rm "$NNN_TMPFILE"'