improving comments

This commit is contained in:
Ville Rantanen
2017-04-06 09:42:49 +03:00
parent c4aebbba48
commit 4c93185b80

View File

@@ -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