/etc/fdclone/fd2rc is in fdclone 3.01b-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 | # /etc/fdclone/fd2rc: Initialize file for FD
#
# This Debian package provides /etc/fdclone/fd2rc.siteconfig for
# site specific settings. Please use it for your customization,
# and leave this file alone for smooth upgrade.
#
# There are some settings in this configuration file
# which differ from the upstream default:
#
# DISPLAYMODE=3 (sym-link status & file type symbol)
# ADJTTY=1 (adjust TTY when exiting)
# TMPDIR=$HOME (for security reasons)
# TMPUMASK=077 (same above)
# LANGUAGE=$LANG
# INPUTKCODE=$LANG
# FNAMEKCODE=$LANG
#
# Launcher settings
# for files with suffix as .zip, .Z, .gz. .bz2
# for deb package (.deb) and rpm package (.rpm)
# Archiver settings
# for files with suffix as .zip
# for deb package (.deb) and rpm package (.rpm)
#
# Some keycode settings for linux console, xterm, and kterm.
#
# fdclone can use the environment variables PAGER and EDITOR,
# but the settings from the configuration file such as
# /etc/fdclone/fd2rc or $HOME/.fd2rc will be prefered and
# the settings in the environment variables are ignored in
# this case.
# (/etc/fdclone/fd2rc includes /etc/fdclone/fd2rc.siteconfig)
#
# So the default runcom file (i.e. this file, /etc/fdclone/fd2rc)
# in this package don't set these variables as default.
# If you like to set the PAGER&EDITOR settings as the site default,
# plese put the following 2 lines in /etc/fdclone/fd2rc.siteconfig.
#
# PAGER=/usr/bin/pager%K (or the pager which you like)
# EDITOR=/usr/bin/editor (or the editor which you like)
#
# `%K' means that fd waits for the key input when the pager finishes.
# This is useful for simple pagers such like `more', since they just
# quits soon when they show all the contents of the specified file.
# But if you use others such like `less' or `lv', then you wish to
# disable this by eliminating `%K' at the end, since the pager itself
# prompts user to quit.
# Please refer the manual page of `fd' for more detail.
# to set default sort type
# 0: not sort (Default)
# 1: alphabetical 9: alphabetical (reversal)
# 2: extension 10: extension (reversal)
# 3: size 11: size (reversal)
# 4: date 12: date (reversal)
# 5: length 13: length (reversal)
# 100-113: preserve previous sort type
# (the least 2 digits are effective just after initialize)
#SORTTYPE=0
# to set default display mode
# 0: normal (Default)
# 1: sym-link status
# 2: file type symbol
# 3: sym-link status & file type symbol
# 4: invisible dot file
# 5: sym-link status & invisible dot file
# 6: file type symbol & invisible dot file
# 7: sym-link status & file type symbol & invisible dot file
DISPLAYMODE=3
# whether if sort or not in tree mode
# 0: not sort (Default)
# >= 1: sort according to SORTTYPE
#SORTTREE=0
# behavior about writing over directory on file system
# 0: confirm to write or not, after directory arranged (Default)
# 1: write directory only if commanded
# 2: never write over directory even if commanded
#WRITEFS=0
# whether if ignore uppercase or lowercase in filename comparison
# 0: not ignore (Default)
# >= 1: ignore
#IGNORECASE=0
# whether if inherit timestamp or not when copying
# 0: not inherit (Default)
# >= 1: inherit
#INHERITCOPY=0
# whether if adjust tty or not when exiting
# 0: not adjust (Default)
# >= 1: adjust
ADJTTY=1
# whether if prioritize VT100 escape sequence or not for getting terminal size
# 0: not prioritize (Default)
# >= 1: prioritize
#USEGETCURSOR=0
# to set default columns of file in 1 line
# 1: 1 column
# 2: 2 columns (Default)
# 3: 3 columns
# 5: 5 columns
#DEFCOLUMNS=2
# minimum columns of filename field
# Default: 12
#MINFILENAME=12
# history file of sh mode
# Default: ~/.fd_history
#HISTFILE=~/.fd_history
# history size of sh mode
# Default: 50
#HISTSIZE=50
# history size of path input
# Default: 50
#DIRHIST=50
# size of saved history
# Default: 50
#SAVEHIST=50
# limit of counting files in directory, on tree mode
# Default: 50
#DIRCOUNTLIMIT=50
# whether if make MS-DOS drive effective
# 0: not use (Default)
# >= 1: effective
#DOSDRIVE=0
# whether if display the second hand of clock
# 0: not display (Default)
# >= 1: display
#SECOND=0
# whether if use the screen layout based on the traditional "FD"
# 0: original layout (Default)
# >= 1: traditional layout
#TRADLAYOUT=0
# whether if show the info. of filesize
# 0: not show (Default)
# >= 1: show
#SIZEINFO=0
# whether if support ANSI color escape sequence
# 0: monochrome (Default)
# 1: color
# 2: color & force background to blacken
# 3: color & force foreground to blacken
#ANSICOLOR=0
# specify color palette in the ANSI color mode
# Default: none
# 0: black
# 1: red
# 2: green
# 3: yellow
# 4: blue
# 5: magenta
# 6: cyan
# 7: white
# 8: default color for foreground
# 9: default color for background
# default palette: 8962435188
# ||||||||||
# normal file -----+|||||||||
# background -------+||||||||
# directory ---------+|||||||
# unwritable ---------+||||||
# unreadable ----------+|||||
# symbolic link --------+||||
# socket ----------------+|||
# fifo (named pipe) ------+||
# block device ------------+|
# character device ---------+
#ANSIPALETTE=""
# select edit mode with your favorite editor type
# emacs: ^P, ^N, ^F, ^B, ... (Default)
# wordstar ^E, ^X, ^D, ^S, ...
# vi: k, j, l, h, ...
#EDITMODE=emacs
# whether if loop cursor moving within the same page
# 0: not loop (Default)
# >= 1: loop
#LOOPCURSOR=0
# temporary directory where archive file is unpacked
# Default: /tmp
TMPDIR=$HOME
# file creation mask for the temporary directory
# Default: 022
TMPUMASK=077
# mount point of CD-ROM with iso-9660 rock ridge format
# Default: none
#RRPATH=""
# directories on which browsing precedes getting file status
# Default: none
#PRECEDEPATH=""
# shell prompt strings
# Default: "$ "
#PS1="$ "
# continuous shell prompt strings
# Default: "> "
#PS2="> "
# whether if not use control sequences in the internal shell
# 0: use (Default)
# >= 1: not use
#DUMBSHELL=0
# whether if hold the UNICODE translation table on memory
# 0: not hold (Default)
# >= 1: hold
#UNICODEBUFFER=0
# language code type to display
# Default: No convert
# euc, EUC: EUC-JP
# sjis, SJIS: Shift JIS
# jis, JIS: 7bits JIS
# jis8, JIS8: 8bits JIS
# junet, JUNET: ISO-2022-JP
# ojis, OJIS: old 7bits JIS
# ojis8, OJIS8: old 8bits JIS
# ojunet, OJUNET: old ISO-2022-JP
# utf8, UTF8: UTF-8
# utf8-mac, UTF8-MAC: UTF-8 for Mac OS X
# eng, ENG, C: English
LANGUAGE=$LANG
# language code type to input
# Default: No convert
# euc, EUC: EUC-JP
# sjis, SJIS: Shift JIS
# utf8, UTF8: UTF-8
# utf8-mac, UTF8-MAC: UTF-8 for Mac OS X
INPUTKCODE=$LANG
# language code type in filename
# Default: No convert
# euc, EUC: EUC-JP
# sjis, SJIS: Shift JIS
# jis, JIS: 7bits JIS
# jis8, JIS8: 8bits JIS
# junet, JUNET: ISO-2022-JP
# ojis, OJIS: old 7bits JIS
# ojis8, OJIS8: old 8bits JIS
# ojunet, OJUNET: old ISO-2022-JP
# hex, HEX: HEX
# cap, CAP: CAP
# utf8, UTF8: UTF-8
# utf8-mac, UTF8-MAC: UTF-8 for Mac OS X
FNAMEKCODE=$LANG
# directories on which language code type in filename is SJIS
# Default: none
#SJISPATH=""
# directories on which language code type in filename is EUC-JP
# Default: none
#EUCPATH=""
# directories on which language code type in filename is 7bits JIS
# Default: none
#JISPATH=""
# directories on which language code type in filename is 8bits JIS
# Default: none
#JIS8PATH=""
# directories on which language code type in filename is ISO-2022-JP
# Default: none
#JUNETPATH=""
# directories on which language code type in filename is old 7bits JIS
# Default: none
#OJISPATH=""
# directories on which language code type in filename is old 8bits JIS
# Default: none
#OJIS8PATH=""
# directories on which language code type in filename is old ISO-2022-JP
# Default: none
#OJUNETPATH=""
# directories on which language code type in filename is HEX
# Default: none
#HEXPATH=""
# directories on which language code type in filename is CAP
# Default: none
#CAPPATH=""
# directories on which language code type in filename is UTF-8
# Default: none
#UTF8PATH=""
# directories on which language code type in filename is UTF-8 for Mac OS X
# Default: none
#UTF8MACPATH=""
# directories on which language code type in filename is not converted
# Default: none
#NOCONVPATH=""
#PAGER=more%K
#EDITOR=vi
#SHELL=/bin/sh
# for Mischievous Japanese OS (see `man fd')
#export LANG=C
# launcher definition
#(Default)
#launch ".lzh" "lha l" \
# -f "%a %u/%g %s %x %m %d %{yt} %*f" \
# -f "%9a %u/%g %s %x %m %d %{yt} %*f" \
# -i " PERMSSN * UID*GID *" \
# -i "----------*" \
# -i " Total * file* ???.*%*" \
#launch ".tar" "tar tvf" \
# -f "%a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %s %y-%m-%d %t %*f" \
# -f "%a %l %u %g %s %m %d %{yt} %*f" \
# -f "%10a %u/%g %s %m %d %t %y %*f" \
# -f "%9a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %m %d %t %y %*f"
#launch ".tar.Z" "zcat %C|tar tvf -" \
# -f "%a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %s %y-%m-%d %t %*f" \
# -f "%a %l %u %g %s %m %d %{yt} %*f" \
# -f "%10a %u/%g %s %m %d %t %y %*f" \
# -f "%9a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %m %d %t %y %*f"
#launch ".tar.gz" "gzip -cd %C|tar tvf -" \
# -f "%a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %s %y-%m-%d %t %*f" \
# -f "%a %l %u %g %s %m %d %{yt} %*f" \
# -f "%10a %u/%g %s %m %d %t %y %*f" \
# -f "%9a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %m %d %t %y %*f"
#launch ".tar.bz2" "bzip2 -cd %C|tar tvf -" \
# -f "%a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %s %y-%m-%d %t %*f" \
# -f "%a %l %u %g %s %m %d %{yt} %*f" \
# -f "%10a %u/%g %s %m %d %t %y %*f" \
# -f "%9a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %m %d %t %y %*f"
#launch ".taZ" "zcat %C|tar tvf -" \
# -f "%a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %s %y-%m-%d %t %*f" \
# -f "%a %l %u %g %s %m %d %{yt} %*f" \
# -f "%10a %u/%g %s %m %d %t %y %*f" \
# -f "%9a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %m %d %t %y %*f"
#launch ".taz" "gzip -cd %C|tar tvf -" \
# -f "%a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %s %y-%m-%d %t %*f" \
# -f "%a %l %u %g %s %m %d %{yt} %*f" \
# -f "%10a %u/%g %s %m %d %t %y %*f" \
# -f "%9a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %m %d %t %y %*f"
#launch ".tgz" "gzip -cd %C|tar tvf -" \
# -f "%a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %s %y-%m-%d %t %*f" \
# -f "%a %l %u %g %s %m %d %{yt} %*f" \
# -f "%10a %u/%g %s %m %d %t %y %*f" \
# -f "%9a %u/%g %s %m %d %t %y %*f" \
# -f "%a %u/%g %m %d %t %y %*f"
#(Examples)
launch ".zip" "unzip -lqq" " %s %m-%d-%y %t %*f"
#launch ".zoo" "zoo lq" " %s %x %x %d %m %y %t %*f"
#launch ".rar" "unrar v" \
# -f " %*f\n%s %x %x %d-%m-%y %t %a" \
# -i "UNRAR *" \
# -i "RAR *" \
# -i "Shareware version *" \
# -i "Verifying authenticity *" \
# -i "Solid archive *" \
# -i "Archive *" \
# -i "Pathname/Comment" \
# -i "Size * Packed *" \
# -i "----------*" \
# -i "* * * ??%" \
# -i "Old style *" \
# -i "Archive *.rar" \
# -i "created at ??:??:?? *" \
# -i "by * *" \
# -i ""
launch ".Z" "zcat %C|$PAGER"
launch ".gz" "gzip -cd %C|$PAGER"
launch ".bz2" "bzip2 -cd %C|$PAGER"
# examples for MS-DOS
#launch ".lzh" "lha v %S" %
# -f "%*f\n%s %x %x %y-%m-%d %t %a" %
# -f "%1x %12f %s %x %x %y-%m-%d %t %a" %
# -i "Listing of archive : *" %
# -i " Name Original *" %
# -i "--------------*" %
# -i "* files * ???.?%%%% ??-??-?? ??:??:??" %
# -i ""
#launch ".tar.Z" "gzip -cd %S|tar tvf -" %
# -f "%a %u/%g %s %m %d %t %y %*f" %
# -f "%a %u/%g %s %y-%m-%d %t %*f" %
# -f "%a %u/%g %s %m %d %y %t %*f" %
#launch ".tar.gz" "gzip -cd %S|tar tvf -" %
# -f "%a %u/%g %s %m %d %t %y %*f" %
# -f "%a %u/%g %s %y-%m-%d %t %*f" %
# -f "%a %u/%g %s %m %d %y %t %*f" %
#launch ".tar.bz2" "bzip2 -cd %S|tar tvf -" %
# -f "%a %u/%g %s %m %d %t %y %*f" %
# -f "%a %u/%g %s %y-%m-%d %t %*f" %
# -f "%a %u/%g %s %m %d %y %t %*f" %
#launch ".taz" "gzip -cd %S|tar tvf -" %
# -f "%a %u/%g %s %m %d %t %y %*f" %
# -f "%a %u/%g %s %y-%m-%d %t %*f" %
# -f "%a %u/%g %s %m %d %y %t %*f" %
#launch ".tgz" "gzip -cd %S|tar tvf -" %
# -f "%a %u/%g %s %m %d %t %y %*f" %
# -f "%a %u/%g %s %y-%m-%d %t %*f" %
# -f "%a %u/%g %s %m %d %y %t %*f" %
#launch ".zip" "unzip -lqq %S" " %s %y-%m-%d %t %*f"
#launch ".zip" "pkunzip -vb %S" " %s %x %x %x %y-%m-%d %t %*f" 14 2
#
# Debian package settings
launch ".deb" "ar p %C data.tar.gz|gzip -dc|tar tvf - "\
"%a %u/%g %s %y-%m-%d %t %f"
launch ".rpm" "rpm2cpio %C|cpio -tv" "%a %x %u %g %s %m %d %y %f"
# archiver definition
#(Default)
#arch ".lzh" "lha aq %C %TA" "lha xq %C %TA"
#arch ".tar" "tar cf %C %T" "tar xf %C %TA"
#arch ".tar.Z" "tar cf - %T|compress -c > %C" "zcat %C|tar xf - %TA"
#arch ".tar.gz" "tar cf - %T|gzip -c > %C" "gzip -cd %C|tar xf - %TA"
#arch ".tar.bz2" \
# "tar cf - %T|bzip2 -c > %C" "bzip2 -cd %C|tar xf - %TA"
#arch ".taZ" "tar cf - %T|compress -c > %C" "zcat %C|tar xf - %TA"
#arch ".taz" "tar cf - %T|gzip -c > %C" "gzip -cd %C|tar xf - %TA"
#arch ".tgz" "tar cf - %T|gzip -c > %C" "gzip -cd %C|tar xf - %TA"
#(Examples)
arch ".zip" "zip -q %C %TA" "unzip -q %C %TA"
#arch ".zoo" "zoo aq %C %TA" "zoo xq %C %TA"
#arch ".rar" "rar a -inul %C %TA" "unrar x -inul %C %TA"
# examples for MS-DOS
#arch ".lzh" "lha a %S %TA" "lha x %S %TA"
#arch ".tar.Z" "tar cf - %T|compress -c > %C" "gzip -cd %S|tar xf - %TA"
#arch ".tar.gz" "tar cf - %T|gzip -c > %C" "gzip -cd %S|tar xf - %TA"
#arch ".tar.bz2" %
# "tar cf - %T|bzip2 -c > %C" "bzip2 -cd %S|tar xf - %TA"
#arch ".taz" "tar cf - %T|compress -c > %C" "gzip -cd %S|tar xf - %TA"
#arch ".tgz" "tar cf - %T|gzip -c > %C" "gzip -cd %S|tar xf - %TA"
#arch ".zip" "pkzip %S %TA" "pkunzip %S %TA"
#
# Debian package settings
arch ".deb" "clear; echo ERROR; false"\
"ar p %C data.tar.gz|gzip -dc|tar -xf - %TA"
arch ".rpm" "clear; echo ERROR; false" "rpm2cpio %C|cpio -id %TA"
# key bind definition
#(Examples)
#bind 'I' "dir -d %C"
#bind 'g' "gzip %C%K" WARNING_BELL
#bind 'G' "gzip -d %C%K" WARNING_BELL
#bind 'R' "grep %R %C"
#bind '{' ROLL_UP
#bind '}' ROLL_DOWN
#bind '~' "cd ~%N%K"
#bind 'F1' "man fd%N%K" :Manual
# function definition
#(Example1)
#rename() {
# MARK_ALL 0
# MARK_FIND $1
## RENAME_FILE $2
# evalmacro mv %M $2
#}
#
#(Example2: used in archiver definition)
#maketaz() {
# evalmacro tar cf %X.tar %T
# evalmacro $1 %X.tar
# evalmacro mv %X.tar.$2 %X.$3
#}
#
#(Example3: ftp browsing)
#getftp() {
# FHOST=$1
# FPATH=
# browse -@ - <<'EOF0'
# 'ftp -n $FHOST <<-EOF
# user ftp `whoami`@`hostname`
# dir $FPATH
# quit
# EOF'
# -f "%a %l %u %g %s %m %d %{yt} %*f"
# -i "total *"
# -e "Not connected."
# -e "Login incorrect."
# -e "Login failed."
# -p 'FPATH=$1; while [ "$#" -gt 1 ]; do shift; FPATH=$1/$FPATH; done'
# -d loop
#
# 'dir=`readline "Dir: "` && [ -d "$dir" ] \
# && yesno "copy \"$FPATH\" to \"$dir\" ?" \
# && ftp -n $FHOST <<-EOF \
# && echo "copy \"$FPATH\" to \"$dir\"." %K \
# || echo canceled.
# user ftp `whoami`@`hostname`
# get $FPATH $dir/${FPATH##*/}
# quit
# EOF'
#EOF0
#}
# MS-DOS drive definition
#(Example)
#setdrv B "/dev/rfd00a" 2, 18, 80
# alias definition
#(Example)
#alias dir="ls -laF"
# keymap definition
#(Example)
#keymap DEL "\033[3~"
# common keycode settings for xterm and kterm
xtermkey()
{
keymap HOME "\033OH"
keymap END "\033OF"
#keymap INS "\033[2~"
#keymap DEL "\033[3~"
keymap BS "\177"
#keymap PPAGE "\033[5~"
#keymap NPAGE "\033[6~"
#keymap RET "\033OM"
keymap F5 "\033[15~"
keymap F6 "\033[17~"
keymap F7 "\033[18~"
keymap F8 "\033[19~"
keymap F9 "\033[20~"
keymap F10 "\033[21~"
keymap F11 "\033[23~"
keymap F12 "\033[24~"
keymap PLUS "\033Ok"
keymap MINUS "\033Om"
keymap ASTER "\033Oj"
keymap SLASH "\033Oo"
}
# keycode settings for various terminals
case $TERM in
linux)
LANGUAGE=eng
;;
xterm)
LANGUAGE=eng
keymap F1 "\033OP"
keymap F2 "\033OQ"
keymap F3 "\033OR"
keymap F4 "\033OS"
xtermkey
;;
kterm)
keymap F1 "\033[11~"
keymap F2 "\033[12~"
keymap F3 "\033[13~"
keymap F4 "\033[14~"
xtermkey
;;
esac
unset xtermkey
# for site specific settings
source /etc/fdclone/fd2rc.siteconfig
|