Skip to content

z igni results in an error #60

@cgonyeo

Description

@cgonyeo

In zsh:

derek@proton 1 ~/git/cyanide> z ign
derek@proton ~/go/src/github.com/coreos/ignition> z igni
error: The subcommand 'igni' wasn't recognized
	Did you mean 'init'?

If you believe you received this message in error, try re-running with 'pazi -- igni'

USAGE:
    pazi <--dir|--add-dir <directory>>

For more information try --help

derek@proton 1 ~/go/src/github.com/coreos/ignition> 
derek@proton 1 ~/go/src/github.com/coreos/ignition> alias z
z=pazi_cd
derek@proton ~/go/src/github.com/coreos/ignition> which pazi_cd
pazi_cd () {
	if [ "$#" -eq 0 ]
	then
		pazi
		return $?
	fi
	local res
	res="$(__PAZI_EXTENDED_EXITCODES=1 pazi --dir "$@")" 
	local ret=$? 
	case $ret in
		(90) echo "${res}" ;;
		(91) cd "${res}" ;;
		(92) echo "${res}" && return 1 ;;
		(93) return 1 ;;
		(*) echo "${res}" && return $ret ;;
	esac
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions