@ 261102.1

260404.2 · 23164c2263a67ea04fbc45a35ac1ccfe1a1b6f07

fish: Completion script rewrite (SHIFT-TAB)

reading declarations

Changes to shell/update.sh. All files

shell/update.sh

@@ -8,26 +8,24 @@ dir=${0%"${0##*/}"}  update() {   {-    sed -n "1,/^#----BEGIN INCLUDE $1/p" "$2"+    sed -n '1,/^#----BEGIN INCLUDE common\.sh/p' "$1"     cat << EOF-# NOTE: Do not directly edit this section, which is copied from "$1".-# To modify it, one can edit "$1" and run "./update.sh" to apply-# the changes. See code comments in "$1" for the implementation details.+# NOTE: Do not directly edit this section, which is copied from "common.sh".+# To modify it, one can edit "common.sh" and run "./update.sh" to apply+# the changes. See code comments in "common.sh" for the implementation details. EOF     echo-    grep -v '^[[:blank:]]*#' "$dir/$1" # remove code comments from the common file-    sed -n '/^#----END INCLUDE/,$p' "$2"-  } > "$2.part"+    grep -v '^[[:blank:]]*#' "$dir/common.sh" # remove code comments in common.sh+    sed -n '/^#----END INCLUDE/,$p' "$1"+  } > "$1.part" -  mv -f "$2.part" "$2"+  mv -f "$1.part" "$1" } -update "common.sh" "$dir/completion.bash"-update "common.sh" "$dir/completion.zsh"-update "common.sh" "$dir/key-bindings.bash"-update "common.sh" "$dir/key-bindings.zsh"-update "common.fish" "$dir/completion.fish"-update "common.fish" "$dir/key-bindings.fish"+update "$dir/completion.bash"+update "$dir/completion.zsh"+update "$dir/key-bindings.bash"+update "$dir/key-bindings.zsh"  # Check if --check is in ARGV check=0