Skip to content

Commit

Permalink
Add FTP example to the nets config file
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-arch committed Feb 1, 2025
1 parent 0486ca6 commit d1b54ba
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions misc/nets.clifm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
# Automatically unmount this remote at exit
#AutoUnmount=true

# TIP: When mounting a slow file system (say, an FTP server), it
# is recommended to set an autocommand for the mount point disabling
# some Clifm features that might slow things down. Open the
# configuration file ('config' or F10), go to the AUTOCOMMANDS
# section and add a new autocommand:
#
#autocmd ~/mounts/ftp_server/** lm=1,fc=0
#
# The light mode (lm) prevents some files processing, and the files
# counter (fc) is expensive: disable it.

# A few examples

# A. Samba share
Expand All @@ -43,7 +54,16 @@
#AutoUnmount=false
#AutoMount=false

# C. Mounting a local file system
# C. FTP file system
#[ftp_server]
#Comment=FTP server
#Mountpoint="~/mounts/ftp_server"
#MountCmd=curlftpfs ftp://ftp.example.org %m
#UnmountCmd=fusermount3 -u %m
#AutoMount=false
#AutoUnmount=false

# D. Mounting a local file system
#[local]
#Comment=Local filesystem
#Mountpoint="/media/extra"
Expand All @@ -52,7 +72,7 @@
#AutoUnmount=false
#AutoMount=true

# D. Mounting a removable device
# E. Mounting a removable device
#[USB]
#Comment=My USB drive
#Mountpoint="/media/usb"
Expand Down
2 changes: 1 addition & 1 deletion src/term.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ check_img_support(const char *env_term)
* kitty terminal. See https://github.com/kovidgoyal/kitty/issues/957 */
setenv("CLIFM_IMG_SUPPORT", "kitty", 1);
} else if ((term_caps.req_dev_attrs == 1 && check_sixel_support() == 1)
/* Yaft supports sixel, but does not report it. */
/* Yaft supports sixel (and DA request), but does not report it. */
|| (*env_term == 'y' && strcmp(env_term, "yaft-256color") == 0)) {
setenv("CLIFM_IMG_SUPPORT", "sixel", 1);
} else {
Expand Down

0 comments on commit d1b54ba

Please sign in to comment.