commands help
This commit is contained in:
parent
905a53caf2
commit
b0d3274e5e
15
.bashrc
15
.bashrc
|
@ -139,6 +139,13 @@ gitpush() {
|
|||
}
|
||||
|
||||
swp() {
|
||||
if [ "$1"="-h" ]; then
|
||||
echo 'This tool is usefull to remove .swp files'
|
||||
echo 'Usage: swp [-d dir] [-noi]'
|
||||
echo 'if you do not specify the directory in -d param, search starts from the current'
|
||||
echo 'if you do not specify the -noi param files removing is interactive'
|
||||
return 1
|
||||
fi
|
||||
cpath=.
|
||||
interactive='-i'
|
||||
while [ -n "$1" ]; do # while loop starts
|
||||
|
@ -159,6 +166,14 @@ swp() {
|
|||
}
|
||||
|
||||
purgefext() {
|
||||
if [ "$1"="-h" ]; then
|
||||
echo 'This tool is usefull to remove specific files type'
|
||||
echo 'Usage: purgefext -e ext [-d dir] [-noi]'
|
||||
echo 'the e param is mandatory: is the files extension you want to remove'
|
||||
echo 'if you do not specify the directory in -d param, search starts from the current'
|
||||
echo 'if you do not specify the -noi param files removing is interactive'
|
||||
return 1
|
||||
fi
|
||||
cpath=.
|
||||
interactive='-i'
|
||||
ext=''
|
||||
|
|
Loading…
Reference in New Issue