/usr/share/eselect/modules # ln -s repository.eselect repo.eselect SO much more friendlier .. add a symlink alias to ebuild and wala.. less fat finger'y Mike-LTPC / # eselect repo Usage: eselect repo <action> <options> Standard actions: help Display help text usage Display usage information version Display version information Extra actions: add <name> <sync-type> <sync-uri> Add a custom repository <name> Name of the repository to add <sync-type> Syncer to use (e.g. git, rsync, svn...) <sync-uri> Sync URI disable [-f] (<name>|<index>)... Disable specified repositories without removing their contents -f Force potentially dangerous removals <name>... Names of repositories to disable <index>... Numeric index of the repository (from 'list' command) enable (<name>|<index>)... Enable the specified repositories from the list <name>... Names of repositories to enable <index>... Numeric index of the repository (from 'list' command) list [-i] List all repositories -i Only list installed remove [-f] (<name>|<index>)... Remove installed repositories along with their contents -f Force potentially dangerous removals <name>... Names of repositories to remove <index>... Numeric index of the repository (from 'list' command) Mike-LTPC / #
##eselect-repository-9999 # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 EGIT_REPO_URI="https://github.com/mgorny/eselect-repository.git" PYTHON_COMPAT=( python{3_4,3_5,3_6,3_7} ) inherit git-r3 python-single-r1 DESCRIPTION="Manage repos.conf via eselect" HOMEPAGE="https://github.com/mgorny/eselect-repository" SRC_URI="" LICENSE="BSD-2" SLOT="0" KEYWORDS="" IUSE="" REQUIRED_USE=${PYTHON_REQUIRED_USE} RDEPEND="${PYTHON_DEPS} app-admin/eselect dev-python/lxml[${PYTHON_USEDEP}] net-misc/wget" src_compile() { MAKEARGS=( PREFIX="${EPREFIX}/usr" SYSCONFDIR="${EPREFIX}/etc" SHAREDSTATEDIR="${EPREFIX}/var" ESELECTDIR="${EPREFIX}/usr/share/eselect/modules" ) emake "${MAKEARGS[@]}" python_fix_shebang eselect-repo-helper } src_install() { emake "${MAKEARGS[@]}" DESTDIR="${D}" install keepdir /var/db/repos einstalldocs ### add a nice friendlier symlink alias repo.eselect # /usr/share/eselect/modules # ln -s repository.eselect repo.eselect dosym /usr/share/eselect/modules/repository.eselect /usr/share/eselect/modules/repo.eselect }
That would make repository.eselect be listed twice with "eselect modules list". Maybe use bash completion instead?