1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 23:19:25 +00:00

Add comments into each of the function files to make them easier to find

This commit is contained in:
Kaleb Elwert
2017-07-06 16:01:26 -07:00
parent a70bce3ea6
commit 7d5beeab51
36 changed files with 144 additions and 0 deletions

View File

@ -6,6 +6,8 @@
# Matt Hamilton <m@tthamilton.com>
#
# function archive {
local archive_name dir_to_archive _gzip_bin _bzip2_bin
if (( $# != 2 )); then
@ -65,3 +67,5 @@ case "${archive_name}" in
(*.lzma) print "\n.lzma is only useful for single files, and does not capture permissions. Use .tar.lzma" ;;
(*) print "\nunknown archive type for archive: ${archive_name}" ;;
esac
# }

View File

@ -5,6 +5,8 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# function lsarchive {
local verbose
if (( $# == 0 )); then
@ -53,3 +55,5 @@ while (( $# > 0 )); do
shift
done
# }

View File

@ -5,6 +5,8 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# function unarchive {
local remove_archive
local success
local file_name
@ -78,3 +80,5 @@ while (( $# > 0 )); do
(( $success == 0 )) && (( $remove_archive == 0 )) && rm "$1"
shift
done
# }