These commands attempt to introduce some humanism to POSIX users by providing sensible defaults to basic commands and changing the basic functionality of some so as to free neurons for use on something other than remembering command flags. This effort ignores with intent the response "it only takes you one more second to do it the normal way."
Examples: cd
use typically includes only one argument: a directory. With
that assumption this seems absurd:
cd ./to\ some\ directory
. And history
and ps
are
rarely used without grep
. find
is typically used to fuzzy search for a
file name so why isn't -iname "*$@*"
the default?
Some commands herein alter workflow more intrusively. The c
command,
intended to replace cd, will search forward and backward looking for a directory
that matches any part of the argument filter. Though subtle this change makes
moving through the file systems similar to using command launchers found in
modern OS UI's (cmd+space osx, alt+F2 ubuntu). The ap
command unifies
package searching, installation and information making finding needed
dependencies or files easier. sshrc
can be used to carry humanism
(inspired by Russen91's sshrc).
alias ssh=sshrc
and take it wherever you go.
To load all commands for each new terminal shell (bash/zsh/sh compatible) source the file in your profile or bashrc:
source humanism.sh
Alternatively you can load commands selectively source humanism.sh <cmd>
or execute humanism.sh help
to see list of commands.
You are likely use ap
and in some cases dbg
via sudo/root so link these
scripts into a PATH'ed bin:
sudo ln -s <humanism.sh_path>/dbg /usr/local/bin
sudo ln -s <humanism.sh_path>/ap.<version> /usr/local/bin
Commands have been tested on OSX, Ubuntu and FreeBSD and various virtual hosts
and embedded devices. If you find errors please execute the dependency test
script sh -x test/requirements.sh
and submit an issue on github.
c go to last dir
c <FiLteR> go to path, if not in cwd search forward and backward for
*FiLtEr* in tree
Details: