Re: ls-F tcsh built-in command
On Thu 2012-05-17 15:17:13 UTC+0200, Polytropon (free...@edvax.de) wrote: Search for LS_COLORS in the environment variables section of man csh. However, I've always been satisfied with using $LSCOLORS as ExGxdxdxCxDxDxBxBxegeg. :-) Before I discovered $LSCOLORS I used gls from /usr/ports/sysutils/coreutils and had an alias in .tcshrc: alias ls gls --time-style=long-iso --color=auto I still use this in Linux. In FreeBSD I use /bin/ls: setenv LSCOLORS ExGxFxdxCxDxDxhbadExEx alias ls 'ls -D %Y-%m-%d %H:%M:%S' The -D stuff is to display ISO 8601 style timestamps like GNU ls's --time-style=long-iso format, eg: -r-xr-xr-x 1 root wheel 12612347 2011-09-28 19:13:57 /boot/GENERIC/kernel I don't know if this helps the OP. :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ls-F tcsh built-in command
On Sun, 20 May 2012 20:59:50 +1000, andrew clarke wrote: In FreeBSD I use /bin/ls: setenv LSCOLORS ExGxFxdxCxDxDxhbadExEx alias ls 'ls -D %Y-%m-%d %H:%M:%S' The -D stuff is to display ISO 8601 style timestamps like GNU ls's --time-style=long-iso format, eg: -r-xr-xr-x 1 root wheel 12612347 2011-09-28 19:13:57 /boot/GENERIC/kernel I don't know if this helps the OP. :-) At least it helps me, many thanks for the inspiration! I now have (and intend to keep using): setenv LSCOLORS ExGxdxdxCxDxDxBxBxegeg alias ls 'ls -FG -D %Y-%m-%d %H:%M:%S' alias ll 'ls -laFG -D %Y-%m-%d %H:%M:%S' This is nice because I haven't found a feature of gls yet that I needed, but which system's ls couldn't provide. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ls-F tcsh built-in command
BSD's 'ls' seems to support only ANSI colors, so I want to use 'ls-F' instead. (which supports ISO 6429 colors) 'ls-F' colors directories beautifully. But 'ls-F -l' does not, at all. Is this designed, or am I doing something wrong? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ls-F tcsh built-in command
2012-05-17 08:12, fake fake skrev: BSD's 'ls' seems to support only ANSI colors, so I want to use 'ls-F' instead. (which supports ISO 6429 colors) 'ls-F' colors directories beautifully. But 'ls-F -l' does not, at all. Is this designed, or am I doing something wrong? From ls manpage -F Display a slash (`/') immediately after each pathname that is a directory, an asterisk (`*') after each that is executable,an at sign (`@') after each symbolic link, an equals sign (`=') after each socket, a percent sign (`%') after each whiteout, and a vertical bar (`|') after each that is a FIFO. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ls-F tcsh built-in command
Thank you for replying. But I am telling 'ls-F' (tcsh built-in command), not 'ls -F'. On 17 May 2012 20:19, Bernt Hansson b...@bananmonarki.se wrote: 2012-05-17 08:12, fake fake skrev: BSD's 'ls' seems to support only ANSI colors, so I want to use 'ls-F' instead. (which supports ISO 6429 colors) 'ls-F' colors directories beautifully. But 'ls-F -l' does not, at all. Is this designed, or am I doing something wrong? From ls manpage -F Display a slash (`/') immediately after each pathname that is a directory, an asterisk (`*') after each that is executable,an at sign (`@') after each symbolic link, an equals sign (`=') after each socket, a percent sign (`%') after each whiteout, and a vertical bar (`|') after each that is a FIFO. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ls-F tcsh built-in command
On Thu, 17 May 2012 20:24:02 +0900, fake fake wrote: Thank you for replying. But I am telling 'ls-F' (tcsh built-in command), not 'ls -F'. Please see man csh: ls-F acts like `ls -CF', unless listflags contains an `x', in which case it acts like `ls -xF'. ls-F passes its arguments to ls(1) if it is given any switches, so `alias ls ls-F' generally does the right thing. So if you use ls-F -l, the C shell will _not_ use ls-F, but call /bin/ls instead. So what you've been observing seems to be the intended behaviour. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ls-F tcsh built-in command
Oh, dear. I didn't notice it. So, is there no way to color directory in ISO 6429 codes with using tcsh? On 17 May 2012 21:54, Polytropon free...@edvax.de wrote: On Thu, 17 May 2012 20:24:02 +0900, fake fake wrote: Thank you for replying. But I am telling 'ls-F' (tcsh built-in command), not 'ls -F'. Please see man csh: ls-F acts like `ls -CF', unless listflags contains an `x', in which case it acts like `ls -xF'. ls-F passes its arguments to ls(1) if it is given any switches, so `alias ls ls-F' generally does the right thing. So if you use ls-F -l, the C shell will _not_ use ls-F, but call /bin/ls instead. So what you've been observing seems to be the intended behaviour. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ls-F tcsh built-in command
On Thu, 17 May 2012 21:59:52 +0900, fake fake wrote: Oh, dear. I didn't notice it. So, is there no way to color directory in ISO 6429 codes with using tcsh? Judging from man csh: File names can also be colorized based on filename extension. This is specified in the LS_COLORS variable using the syntax *ext=string. For example, using ISO 6429 codes, to color all C-language source files blue you would specify *.c=34. This would color all files ending in .c in blue (34) color. [...] If your terminal does use ISO 6429 color codes, you can compose [...] Not all commands will work on all systems or display devices. It seems that the terminal emulator in use also plays an important role. Search for LS_COLORS in the environment variables section of man csh. However, I've always been satisfied with using $LSCOLORS as ExGxdxdxCxDxDxBxBxegeg. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org