New answers tagged

0

I hacked up something that "misuses" the available standard _scp bash completion function to enable completion of remote hosts/paths/files. A vim-wrapping function then mangles the returned paths in the form ho.st:/fol/der/fi.le into the vim-expected form scp://ho.st///fol/der/fi.le. vim () { local params=(); while [[ ! -z $1 ]]; do if [[ "$1" =~ ^[...


1

After each line output, the ls command will reset the color. If you run dircolors -p you'll see a line RESET 0 # reset to "normal" color If you run dircolors on its own (which will output in LS_COLORS format) then you'll see 'rs=0'. So if you want ls to reset to a different color then you'll need to set up a custom LS_COLORS variable with rs=01;33 in ...


4

Problem descripton That's the wrong way of setting colours for ls. ls uses the terminal colours the same way that the prompt does. When dev is colored brown by ls it happens in a similar fashion to this: \[\033[0;33\]dev\[\033[0m\] And the terminal colour is switched back to the regular colour (\[\033[0m\]). From there on the regular colour is used to ...



Top 50 recent answers are included