Overview
Comment: | zshrc: Several changes
* Make i a local variable |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
37161a8741fea5d834b4dba77bb82b0c |
User & Date: | js 2022-10-22 20:17:10 |
Context
2022-10-22
| ||
20:17 | setup.sh: Set fossil autosync to pullonly check-in: 2bc74e893f user: js tags: trunk | |
20:17 | zshrc: Several changes check-in: 37161a8741 user: js tags: trunk | |
20:15 | vim/syntax/objc.vim: Update to ObjFW changes check-in: 3b9986b114 user: js tags: trunk | |
Changes
Changes to zshrc.
︙ | ︙ | |||
63 64 65 66 67 68 69 70 71 72 73 74 75 76 | autoload -U compinit compinit -C # Ignore case on completion zstyle ':completion:*' matcher-list 'm:{A-Z}={a-z} m:{a-z}={A-Z}' __has_command() { for i in $@; do which $i &>/dev/null && return 0 done return 1 } __find_command() { for i in $@; do | > | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | autoload -U compinit compinit -C # Ignore case on completion zstyle ':completion:*' matcher-list 'm:{A-Z}={a-z} m:{a-z}={A-Z}' __has_command() { local i for i in $@; do which $i &>/dev/null && return 0 done return 1 } __find_command() { for i in $@; do |
︙ | ︙ | |||
259 260 261 262 263 264 265 | flpu() { fossil pull && fossil update "$@" } flgrep() { local ret=1 | | | 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | flpu() { fossil pull && fossil update "$@" } flgrep() { local ret=1 fossil changes --all . | awk '{print $2}' | while read file; do grep -H "$@" "$file" && ret=0 [ $? -gt 1 ] && return $? done return $ret } flveri() { |
︙ | ︙ | |||
522 523 524 525 526 527 528 | echo "Please install $pkg from pkgsrc!" 1>&2 return 1 fi export PATH="$prefix/cross/$cross_host/bin:$PATH" ;; morphos) | | | | | | | | 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 | echo "Please install $pkg from pkgsrc!" 1>&2 return 1 fi export PATH="$prefix/cross/$cross_host/bin:$PATH" ;; morphos) local pkg="ppc-morphos-gcc-11" local prefix="$(pkg_info -qp $pkg 2>/dev/null | awk '/^@cwd/ { print $2; exit }')" if [ -z "$prefix" ]; then echo "Please install $pkg from pkgsrc!" 1>&2 return 1 fi export PATH="$prefix/gg/bin:$PATH" export CC="ppc-morphos-gcc-11" export CXX="ppc-morphos-g++-11" export OBJC="$CC" export OBJCXX="$CXX" export cross_host="ppc-morphos" ;; switch) if [ -z "$DEVKITPRO" ]; then echo "Please set DEVKITPRO!" return 1 fi if [ -z $"DEVKITA64" ]; then echo "Please set DEVKITA64!" return 1 fi export PATH="$DEVKITA64/bin:$PATH" export cross_host="aarch64-none-elf" export objfw_configure_flags="--with-$1" ;; wii | wii-u) if [ -z "$DEVKITPRO" ]; then echo "Please set DEVKITPRO!" return 1 fi if [ -z "$DEVKITPPC" ]; then |
︙ | ︙ |