From: Nicolas Boisselier Date: Wed, 8 Jul 2015 10:25:47 +0000 (+0100) Subject: shell functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=5ce8b0d5a591650de586d1eae5a92624f2e06830;p=nb.git shell functions --- diff --git a/etc/bashrc.function b/etc/bashrc.function index 900b04bc..f6351769 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -3,6 +3,10 @@ # FUNCTIONS - SH # ################################################################################# +shell_functions() { + set | perl -ne '/^([\w_-]+) \(\)\s*$/ and print "$1\n"' +} + env_add_path() { # Add paths to a variables # Usage PATH=`env_add_path "$PATH" "/blbabla"` diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index fd53699e..32eb2f14 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -5,5 +5,5 @@ git_commit_push() { git_commit_push_add() { git add . - git-commit-push "$@" + git_commit_push "$@" }