From 326acbd1dcec61ee02538f57bfaae1f53abfa92e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 8 Sep 2015 17:23:06 +1200 Subject: Put path func help into heredoc A little more manageable --- bash/bashrc.d/path.bash | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) (limited to 'bash/bashrc.d') diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash index b1a0f9f0..29c356ff 100644 --- a/bash/bashrc.d/path.bash +++ b/bash/bashrc.d/path.bash @@ -15,26 +15,28 @@ path() { # Print help output (also done if command not found) help|h|-h|--help|-\?) - printf '%s: Manage contents of PATH variable\n' "$FUNCNAME" - printf '\n' - printf 'USAGE:\n' - printf ' %s h[elp]\n' "$FUNCNAME" - printf ' Print this help message (also done if command not found)\n' - printf ' %s l[ist]\n' "$FUNCNAME" - printf ' Print the current dirs in PATH, one per line (default command)\n' - printf ' %s i[nsert] DIR\n' "$FUNCNAME" - printf ' Add a directory to the front of PATH, checking for existence and uniqueness\n' - printf ' %s a[ppend] DIR\n' "$FUNCNAME" - printf ' Add a directory to the end of PATH, checking for existence and uniqueness\n' - printf ' %s r[emove] DIR\n' "$FUNCNAME" - printf ' Remove all instances of a directory from PATH\n' - printf '\n' - printf 'INTERNALS:\n' - printf ' %s s[et] [DIR1 [DIR2...]]\n' "$FUNCNAME" - printf ' Set the PATH to the given directories without checking existence or uniqueness\n' - printf ' %s c[heck] DIR\n' "$FUNCNAME" - printf ' Return whether DIR is a component of PATH\n' - printf '\n' + cat <