]> git.nbdom.net Git - nb.git/commitdiff
shell functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 8 Jul 2015 10:25:47 +0000 (11:25 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 8 Jul 2015 10:25:47 +0000 (11:25 +0100)
etc/bashrc.function
etc/profile.d/git.sh

index 900b04bc59a3c8416c1d1becdabe3d2fd9a79256..f63517693b2de45949e5643e5bd618556491f15d 100644 (file)
@@ -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"`
index fd53699e08dd40ccc3937663ac8a1527f14050f0..32eb2f14793c39f6d04da9dd84871b099620bf57 100644 (file)
@@ -5,5 +5,5 @@ git_commit_push() {
 
 git_commit_push_add() {
   git add .
-  git-commit-push "$@"
+  git_commit_push "$@"
 }