i wanted to have colors with the command less on the terminal but it does not work :
Code: Select all
In the help we have :
-r -R .... --raw-control-chars --RAW-CONTROL-CHARS
Output "raw" control characters.
Code: Select all
In the help we have :
-r -R .... --raw-control-chars --RAW-CONTROL-CHARS
Output "raw" control characters.
Code: Select all
alias read='vim -R'
Code: Select all
[ -r /etc/profile.local ] && . /etc/profile.local
Code: Select all
ls
ls [-1AaCxdLHRFplinsehrSXvctu] [-w WIDTH] [FILE]...
List directory contents
-1 One column output
-a Include entries which start with .
-A Like -a, but exclude . and ..
-C List by columns
-x List by lines
-d List directory entries instead of contents
-L Follow symlinks
-H Follow symlinks on command line
-R Recurse
-p Append / to dir entries
-F Append indicator (one of */=@|) to entries
-l Long listing format
-i List inode numbers
-n List numeric UIDs and GIDs instead of names
-s List allocated blocks
-e List full date and time
-h List sizes in human readable format (1K 243M 2G)
-r Sort in reverse order
-S Sort by size
-X Sort by extension
-v Sort by version
-c With -l: sort by ctime
-t With -l: sort by mtime
-u With -l: sort by atime
-w N Assume the terminal is N columns wide
--color[={always,never,auto}] Control coloring
Code: Select all
#!/bin/ash
# type lxterminal >/dev/null 2>&1 && exec lxterminal "$@"
exec urxvt "$@"
Code: Select all
less --version
Code: Select all
ls -g --color=always | less -R -r