GOTO — goto-init
Table of Contents
NAME
goto-init.raku
AUTHOR
Francis Grizzly Smit ([email protected])
VERSION
v0.1.71
COPYRIGHT
LGPL V3.0+ LICENSE
Introduction
This is the init program for GOTO is a mixture of a Raku app path.raku and a module Paths.rakumod that implements it and a set of script to apply them inside a shell instance This is important as you need the scripts to call cd from within the shell process in order to actually change it's current directory otherwise we would only change a subprocesses current directory and then nothing would have been achieved on exit. The scripts are .goto_bash_aliases -> /home/grizzlysmit/Projects/elvish/gzz-goto/bash_aliases in bash and the combination of some lines in your rc.elv file and a elevish module gt.elv.
SC2120
function eb(){ if type exa >> /dev/null 2>&1 then exa -F -laahigHb --color-scale --time-style=full-iso --icons=always "$@" else ls -Flaghi --color "$@" fi }
SC2119
eb else arg=$(command goto "$1") if [ -z "$arg" ] then if [ -d "$1" ] then cd "$1" eb else echo "error: $1 not found" fi else cd "$arg" # shellcheck disable=SC2119 eb fi fi;; *) command goto "$@";; esac }
SC2119
eb else arg=$(command goto "$1") if [ -z "$arg" ] then if [ -d "$1" ] then cd "$1" eb else echo "error: $1 not found" fi else cd "$arg" # shellcheck disable=SC2119 eb fi fi;; *) command goto "$@";; esac } ENDBASH