Skip to content

Commit

Permalink
Update main config file (cpCmd and mvCmd description)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-arch committed Dec 22, 2024
1 parent 2c3651c commit 1b7d296
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
17 changes: 11 additions & 6 deletions misc/clifmrc
Original file line number Diff line number Diff line change
Expand Up @@ -353,16 +353,21 @@
;rmForce=false

# Set the default copy command. Available options are:
# 0 = 'cp -iRp', 1 = 'cp -Rp', 2 = 'advcp -giRp', 3 = 'advcp -gRp',
# 4 = 'wcp', and 5 = 'rsync -avP'
# 2-5 include a progress bar.
# Only 0 and 2 will prompt before overwrite.
# 0: 'cp -Rp'
# 1: 'cp -Rp' (force: do not prompt before overwrite)
# 2: 'advcp -gRp'
# 3: 'advcp -gRp' (force)
# 4: 'wcp'
# 5: 'rsync -avP'
# Note: 2-5 include a progress bar.
;cpCmd=0

# Set the default move command. Available options are:
# 0 = 'mv -i', 1 = 'mv', 2 = 'advmv -gi', and 3 = 'advmv -g'
# 0: 'mv'
# 1: 'mv' (force: do not prompt before overwrite)
# 2: 'advmv -g'
# 3: 'advmv -g' (force)
# 2 and 3 include a progress bar.
# Only 0 and 2 will prompt before overwrite.
;mvCmd=0

# A command separated line of fields defining default answers for
Expand Down
12 changes: 5 additions & 7 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1592,16 +1592,14 @@ create_main_config_file(char *file)
;Filter=""\n\n"

"# Set the default copy command. Available options are:\n\
# 0 = 'cp -iRp', 1 = 'cp -Rp', 2 = 'advcp -giRp', 3 = 'advcp -gRp',\n\
# 4 = 'wcp', and 5 = 'rsync -avP'\n\
# 2-5 include a progress bar\n\
# Only 0 and 2 will prompt before overwrite\n\
# 0: 'cp -Rp', 1: 'cp -Rp' (force), 2: 'advcp -gRp', 3: 'advcp -gRp' (force),\n\
# 4: 'wcp', and 5: 'rsync -avP'\n\
# Note: 2-5 include a progress bar\n\
;cpCmd=%d\n\n"

"# Set the default move command. Available options are:\n\
# 0 = 'mv -i', 1 = 'mv', 2 = 'advmv -gi', and 3 = 'advmv -g'\n\
# 2 and 3 include a progress bar\n\
# Only 0 and 2 will prompt before overwrite\n\
# 0: 'mv', 1: 'mv' (force), 2: 'advmv -g', and 3: 'advmv -g' (force)\n\
# Note: 2 and 3 include a progress bar\n\
;mvCmd=%d\n\n"

"# If set to true, the 'r' command will never prompt before removals.\n\
Expand Down

0 comments on commit 1b7d296

Please sign in to comment.