diff options
author | 2007-01-16 11:29:18 +1000 | |
---|---|---|
committer | 2007-01-16 11:29:18 +1000 | |
commit | 7492b6cdb32cdc73ec117aa53d2568758a9a3950 (patch) | |
tree | 2bb731befc8cb43405d6b6a37b2c52a9b951e67e /share | |
parent | 34e27ff4c216e2d379afba19fed2761a684697d8 (diff) |
Make all descriptions for function calls use the implicit translation from the previous patch instead of explicitly using N_
darcs-hash:20070116012918-ac50b-c1c0df64333ad910ca81dbc86ad193ece6680722.gz
Diffstat (limited to 'share')
-rw-r--r-- | share/functions/_.fish | 4 | ||||
-rw-r--r-- | share/functions/__fish_print_help.fish | 2 | ||||
-rw-r--r-- | share/functions/alias.fish | 2 | ||||
-rw-r--r-- | share/functions/cd.fish | 2 | ||||
-rw-r--r-- | share/functions/contains.fish | 2 | ||||
-rw-r--r-- | share/functions/dirh.fish | 2 | ||||
-rw-r--r-- | share/functions/dirs.fish | 2 | ||||
-rw-r--r-- | share/functions/fish_prompt.fish | 2 | ||||
-rw-r--r-- | share/functions/help.fish | 2 | ||||
-rw-r--r-- | share/functions/la.fish | 2 | ||||
-rw-r--r-- | share/functions/ll.fish | 2 | ||||
-rw-r--r-- | share/functions/ls.fish | 4 | ||||
-rw-r--r-- | share/functions/math.fish | 2 | ||||
-rw-r--r-- | share/functions/nextd.fish | 2 | ||||
-rw-r--r-- | share/functions/open.fish | 2 | ||||
-rw-r--r-- | share/functions/popd.fish | 2 | ||||
-rw-r--r-- | share/functions/prevd.fish | 2 | ||||
-rw-r--r-- | share/functions/prompt_pwd.fish | 4 | ||||
-rw-r--r-- | share/functions/psub.fish | 2 | ||||
-rw-r--r-- | share/functions/pushd.fish | 2 | ||||
-rw-r--r-- | share/functions/pwd.fish | 4 | ||||
-rw-r--r-- | share/functions/save_function.fish | 2 | ||||
-rw-r--r-- | share/functions/setenv.fish | 2 | ||||
-rw-r--r-- | share/functions/type.fish | 2 | ||||
-rw-r--r-- | share/functions/umask.fish | 2 | ||||
-rw-r--r-- | share/functions/vared.fish | 2 |
26 files changed, 30 insertions, 30 deletions
diff --git a/share/functions/_.fish b/share/functions/_.fish index b3c5e218..8983d66e 100644 --- a/share/functions/_.fish +++ b/share/functions/_.fish @@ -5,11 +5,11 @@ set -l path (which $i ^/dev/null) if test -x (echo $path) - function _ -d "Alias for the gettext command" + function _ --description "Alias for the gettext command" gettext fish $argv end else - function _ -d "Alias for the gettext command" + function _ --description "Alias for the gettext command" printf "%s" $argv end end diff --git a/share/functions/__fish_print_help.fish b/share/functions/__fish_print_help.fish index 227df121..3c6ae711 100644 --- a/share/functions/__fish_print_help.fish +++ b/share/functions/__fish_print_help.fish @@ -1,5 +1,5 @@ -function __fish_print_help -d (N_ "Print help message for the specified fish function or builtin") +function __fish_print_help --description "Print help message for the specified fish function or builtin" # These two expressions take care of underlines (Should be italic) set -l cmd1 s/_\x08'\(.\)'/(set_color --underline)\\1(set_color normal)/g diff --git a/share/functions/alias.fish b/share/functions/alias.fish index 64ee83de..8d7b0480 100644 --- a/share/functions/alias.fish +++ b/share/functions/alias.fish @@ -1,5 +1,5 @@ -function alias -d (_ "Legacy function for creating shellscript functions using an alias-like syntax") +function alias --description "Legacy function for creating shellscript functions using an alias-like syntax" if count $argv >/dev/null switch $argv[1] diff --git a/share/functions/cd.fish b/share/functions/cd.fish index 6bd542d2..7e97be01 100644 --- a/share/functions/cd.fish +++ b/share/functions/cd.fish @@ -2,7 +2,7 @@ # The following functions add support for a directory history # -function cd -d (N_ "Change directory") +function cd --description "Change directory" # Skip history in subshells if status --is-command-substitution diff --git a/share/functions/contains.fish b/share/functions/contains.fish index d9987fac..958e465b 100644 --- a/share/functions/contains.fish +++ b/share/functions/contains.fish @@ -1,5 +1,5 @@ -function contains -d (N_ "Test if a key is contained in a set of values") +function contains --description "Test if a key is contained in a set of values" while count $argv >/dev/null switch $argv[1] case '-h' '--h' '--he' '--hel' '--help' diff --git a/share/functions/dirh.fish b/share/functions/dirh.fish index 40a1b0ca..411a2816 100644 --- a/share/functions/dirh.fish +++ b/share/functions/dirh.fish @@ -1,5 +1,5 @@ -function dirh -d (N_ "Print the current directory history (the back- and fwd- lists)") +function dirh --description "Print the current directory history (the back- and fwd- lists)" if count $argv >/dev/null switch $argv[1] diff --git a/share/functions/dirs.fish b/share/functions/dirs.fish index 86001066..64660e34 100644 --- a/share/functions/dirs.fish +++ b/share/functions/dirs.fish @@ -1,4 +1,4 @@ -function dirs -d (N_ "Print directory stack") +function dirs --description "Print directory stack" echo -n (command pwd)" " for i in $dirstack echo -n $i" " diff --git a/share/functions/fish_prompt.fish b/share/functions/fish_prompt.fish index bfded25a..6b2e7ae1 100644 --- a/share/functions/fish_prompt.fish +++ b/share/functions/fish_prompt.fish @@ -2,7 +2,7 @@ # string has a newline before and after, so that fish will know how # long it is. -function fish_prompt -d (N_ "Write out the prompt") +function fish_prompt --description "Write out the prompt" # Just calculate these once, to save a few cycles when displaying the prompt if not set -q __fish_prompt_hostname diff --git a/share/functions/help.fish b/share/functions/help.fish index 7fc32211..0234757f 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -7,7 +7,7 @@ # theoretical problem. # -function help -d (N_ "Show help for the fish shell") +function help --description "Show help for the fish shell" # Declare variables to set correct scope set -l fish_browser diff --git a/share/functions/la.fish b/share/functions/la.fish index a4cf83df..818aa11e 100644 --- a/share/functions/la.fish +++ b/share/functions/la.fish @@ -1,7 +1,7 @@ # # These are very common and useful # -function la -d (N_ "List contents of directory, including hidden files in directory using long format") +function la --description "List contents of directory, including hidden files in directory using long format" ls -lah $argv end diff --git a/share/functions/ll.fish b/share/functions/ll.fish index 5c95a498..75d2ab2c 100644 --- a/share/functions/ll.fish +++ b/share/functions/ll.fish @@ -1,7 +1,7 @@ # # These are very common and useful # -function ll -d (N_ "List contents of directory using long format") +function ll --description "List contents of directory using long format" ls -lh $argv end diff --git a/share/functions/ls.fish b/share/functions/ls.fish index 6fe0300d..f4cdb9a2 100644 --- a/share/functions/ls.fish +++ b/share/functions/ls.fish @@ -4,7 +4,7 @@ if command ls --version 1>/dev/null 2>/dev/null # This is GNU ls - function ls -d (N_ "List contents of directory") + function ls --description "List contents of directory" set -l param --color=auto if isatty 1 set param $param --indicator-style=classify @@ -21,7 +21,7 @@ if command ls --version 1>/dev/null 2>/dev/null else # BSD, OS X and a few more support colors through the -G switch instead if command ls / -G 1>/dev/null 2>/dev/null - function ls -d (N_ "List contents of directory") + function ls --description "List contents of directory" command ls -G $argv end end diff --git a/share/functions/math.fish b/share/functions/math.fish index cda345a6..f2579381 100644 --- a/share/functions/math.fish +++ b/share/functions/math.fish @@ -1,5 +1,5 @@ -function math -d (N_ "Perform math calculations in bc") +function math --description "Perform math calculations in bc" if count $argv >/dev/null switch $argv[1] case -h --h --he --hel --help diff --git a/share/functions/nextd.fish b/share/functions/nextd.fish index 018fef66..9b65b756 100644 --- a/share/functions/nextd.fish +++ b/share/functions/nextd.fish @@ -1,5 +1,5 @@ -function nextd -d (N_ "Move forward in the directory history") +function nextd --description "Move forward in the directory history" if count $argv >/dev/null switch $argv[1] diff --git a/share/functions/open.fish b/share/functions/open.fish index 8c8d9b9d..65d09049 100644 --- a/share/functions/open.fish +++ b/share/functions/open.fish @@ -5,7 +5,7 @@ # if not test (uname) = Darwin - function open -d (N_ "Open file in default application") + function open --description "Open file in default application" if count $argv >/dev/null switch $argv[1] case -h --h --he --hel --help diff --git a/share/functions/popd.fish b/share/functions/popd.fish index 2878659f..b641a37d 100644 --- a/share/functions/popd.fish +++ b/share/functions/popd.fish @@ -1,5 +1,5 @@ -function popd -d (N_ "Pop dir from stack") +function popd --description "Pop dir from stack" if count $argv >/dev/null switch $argv[1] case -h --h --he --hel --help diff --git a/share/functions/prevd.fish b/share/functions/prevd.fish index eb2536db..d0f546a2 100644 --- a/share/functions/prevd.fish +++ b/share/functions/prevd.fish @@ -1,5 +1,5 @@ -function prevd -d (N_ "Move back in the directory history") +function prevd --description "Move back in the directory history" if count $argv >/dev/null switch $argv[1] diff --git a/share/functions/prompt_pwd.fish b/share/functions/prompt_pwd.fish index 49a03708..e971844b 100644 --- a/share/functions/prompt_pwd.fish +++ b/share/functions/prompt_pwd.fish @@ -1,6 +1,6 @@ if test (uname) = Darwin - function prompt_pwd -d (N_ "Print the current working directory, shortend to fit the prompt") + function prompt_pwd --description "Print the current working directory, shortend to fit the prompt" if test "$PWD" != "$HOME" printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|" -e 's-/\([^/]\)\([^/]*\)-/\1-g') echo $PWD|sed -e 's-.*/[^/]\([^/]*$\)-\1-' @@ -9,7 +9,7 @@ if test (uname) = Darwin end end else - function prompt_pwd -d (N_ "Print the current working directory, shortend to fit the prompt") + function prompt_pwd --description "Print the current working directory, shortend to fit the prompt" if test "$PWD" != "$HOME" printf "%s" (echo $PWD|sed -e "s|^$HOME|~|" -e 's-/\([^/]\)\([^/]*\)-/\1-g') echo $PWD|sed -n -e 's-.*/[^/]\([^/]*$\)-\1-p' diff --git a/share/functions/psub.fish b/share/functions/psub.fish index c40c90b1..9eebd13b 100644 --- a/share/functions/psub.fish +++ b/share/functions/psub.fish @@ -1,6 +1,6 @@ -function psub -d (N_ "Read from stdin into a file and output the filename. Remove the file when the command that called psub exits.") +function psub --description "Read from stdin into a file and output the filename. Remove the file when the command that called psub exits." set -l filename set -l funcname diff --git a/share/functions/pushd.fish b/share/functions/pushd.fish index 405fde36..7829e16b 100644 --- a/share/functions/pushd.fish +++ b/share/functions/pushd.fish @@ -1,6 +1,6 @@ -function pushd -d (N_ "Push directory to stack") +function pushd --description "Push directory to stack" if count $argv >/dev/null switch $argv[1] case -h --h --he --hel --help diff --git a/share/functions/pwd.fish b/share/functions/pwd.fish index 0369b195..6d1c3f58 100644 --- a/share/functions/pwd.fish +++ b/share/functions/pwd.fish @@ -4,11 +4,11 @@ # if test (uname) = Darwin - function pwd -d (N_ "Print working directory") + function pwd --description "Print working directory" echo $PWD | sed -e 's|/private||' -e "s|^$HOME|~|" end else - function pwd -d (N_ "Print working directory") + function pwd --description "Print working directory" echo $PWD | sed -e "s|^$HOME|~|" end end
\ No newline at end of file diff --git a/share/functions/save_function.fish b/share/functions/save_function.fish index 415dcd3e..0079af24 100644 --- a/share/functions/save_function.fish +++ b/share/functions/save_function.fish @@ -1,5 +1,5 @@ -function save_function -d (N_ "Save the current definition of all specified functions to file") +function save_function --description "Save the current definition of all specified functions to file" if count $argv >/dev/null switch $argv[1] diff --git a/share/functions/setenv.fish b/share/functions/setenv.fish index 8fd65246..f32a17f6 100644 --- a/share/functions/setenv.fish +++ b/share/functions/setenv.fish @@ -1,4 +1,4 @@ -function setenv -d (N_ 'Set global variable. Alias for set -g, made for csh compatibility') +function setenv --description 'Set global variable. Alias for set -g, made for csh compatibility' set -gx $argv end diff --git a/share/functions/type.fish b/share/functions/type.fish index ef9e31f7..a9b1bdff 100644 --- a/share/functions/type.fish +++ b/share/functions/type.fish @@ -1,5 +1,5 @@ -function type -d (N_ "Print the type of a command") +function type --description "Print the type of a command" # Initialize set -l res 1 diff --git a/share/functions/umask.fish b/share/functions/umask.fish index 0c83a36a..319ce9ac 100644 --- a/share/functions/umask.fish +++ b/share/functions/umask.fish @@ -134,7 +134,7 @@ function __fish_umask_print_symbolic echo $res|cut -c 2- end -function umask -d (N_ "Set default file permission mask") +function umask --description "Set default file permission mask" set -l as_command 0 set -l symbolic 0 diff --git a/share/functions/vared.fish b/share/functions/vared.fish index b93f5bb4..19da02d5 100644 --- a/share/functions/vared.fish +++ b/share/functions/vared.fish @@ -4,7 +4,7 @@ # value of a variable interactively. # -function vared -d (N_ "Edit variable value") +function vared --description "Edit variable value" if test (count $argv) = 1 switch $argv |