From 4c93185b8021d43b7d9c105dca306431758fc35d Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Thu, 6 Apr 2017 09:42:49 +0300 Subject: [PATCH] improving comments --- qcd_function | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcd_function b/qcd_function index 90a8ffc..1f52624 100644 --- a/qcd_function +++ b/qcd_function @@ -11,6 +11,7 @@ function gcd() { } # gcd ends function hcd() { + # History cd. Run without arguments to see list of entries, number as arg. to change directory. [[ "$1" = "-h" ]] && { echo History cd. Run without arguments to see list of entries, number as arg. to change directory. return @@ -174,6 +175,7 @@ Keeps a history of folders visited in ~/.bash_cdhistory } # qcd ends function ncd() { + # echo Next sibling cd [[ "$1" = "-h" ]] && { echo Next sibling cd: change directory to [../next_folder]. ncd - to go to previous. return @@ -219,6 +221,7 @@ function foldermenu_prompt { } function igrep () { + # Interactive grep, read grep arguments [[ "$1" = "-h" ]] && [[ "$#" -eq 1 ]] && { echo Interactive grep, read grep arguments return @@ -237,6 +240,7 @@ function igrep () { } function ised () { + # Interactive sed [[ "$1" = "-h" ]] && [[ "$#" -eq 1 ]] && { echo Interactive sed, read sed arguments return @@ -256,6 +260,7 @@ function ised () { } function rmv () { + # mv files/folders with rsync [[ "$1" = "-h" ]] && { echo 'mv files/folders with rsync (shows speed and progress)' echo 'Usage: rmv source [source2] [source3] target' @@ -329,6 +334,7 @@ function whenfilechanges() { # Shell enhancement function qbg { + # Run a command quiet, and backgrounded [[ "$1" = "-h" ]] && { echo 'Run a command quiet, and backgrounded ( typically X11 executable )' return