improving comments
This commit is contained in:
@@ -11,6 +11,7 @@ function gcd() {
|
|||||||
} # gcd ends
|
} # gcd ends
|
||||||
|
|
||||||
function hcd() {
|
function hcd() {
|
||||||
|
# History cd. Run without arguments to see list of entries, number as arg. to change directory.
|
||||||
[[ "$1" = "-h" ]] && {
|
[[ "$1" = "-h" ]] && {
|
||||||
echo History cd. Run without arguments to see list of entries, number as arg. to change directory.
|
echo History cd. Run without arguments to see list of entries, number as arg. to change directory.
|
||||||
return
|
return
|
||||||
@@ -174,6 +175,7 @@ Keeps a history of folders visited in ~/.bash_cdhistory
|
|||||||
} # qcd ends
|
} # qcd ends
|
||||||
|
|
||||||
function ncd() {
|
function ncd() {
|
||||||
|
# echo Next sibling cd
|
||||||
[[ "$1" = "-h" ]] && {
|
[[ "$1" = "-h" ]] && {
|
||||||
echo Next sibling cd: change directory to [../next_folder]. ncd - to go to previous.
|
echo Next sibling cd: change directory to [../next_folder]. ncd - to go to previous.
|
||||||
return
|
return
|
||||||
@@ -219,6 +221,7 @@ function foldermenu_prompt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function igrep () {
|
function igrep () {
|
||||||
|
# Interactive grep, read grep arguments
|
||||||
[[ "$1" = "-h" ]] && [[ "$#" -eq 1 ]] && {
|
[[ "$1" = "-h" ]] && [[ "$#" -eq 1 ]] && {
|
||||||
echo Interactive grep, read grep arguments
|
echo Interactive grep, read grep arguments
|
||||||
return
|
return
|
||||||
@@ -237,6 +240,7 @@ function igrep () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ised () {
|
function ised () {
|
||||||
|
# Interactive sed
|
||||||
[[ "$1" = "-h" ]] && [[ "$#" -eq 1 ]] && {
|
[[ "$1" = "-h" ]] && [[ "$#" -eq 1 ]] && {
|
||||||
echo Interactive sed, read sed arguments
|
echo Interactive sed, read sed arguments
|
||||||
return
|
return
|
||||||
@@ -256,6 +260,7 @@ function ised () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function rmv () {
|
function rmv () {
|
||||||
|
# mv files/folders with rsync
|
||||||
[[ "$1" = "-h" ]] && {
|
[[ "$1" = "-h" ]] && {
|
||||||
echo 'mv files/folders with rsync (shows speed and progress)'
|
echo 'mv files/folders with rsync (shows speed and progress)'
|
||||||
echo 'Usage: rmv source [source2] [source3] target'
|
echo 'Usage: rmv source [source2] [source3] target'
|
||||||
@@ -329,6 +334,7 @@ function whenfilechanges() {
|
|||||||
# Shell enhancement
|
# Shell enhancement
|
||||||
|
|
||||||
function qbg {
|
function qbg {
|
||||||
|
# Run a command quiet, and backgrounded
|
||||||
[[ "$1" = "-h" ]] && {
|
[[ "$1" = "-h" ]] && {
|
||||||
echo 'Run a command quiet, and backgrounded ( typically X11 executable )'
|
echo 'Run a command quiet, and backgrounded ( typically X11 executable )'
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user