You are not logged in.
Pages: 1
I downloaded dir_colors from https://github.com/seebi/dircolors-solarized
And it works inside konsole terminal but not for tty (ctrl+alt+f2)
I have pretty much customization in .bashrc file which is available with link http://ix.io/2G4W
Guessing that some of that settings conflict with tty LS_COLORS environment variable, because if I try to do echo $LS_COLORS there it returning no results.
Ukrainian
Offline
if [[ "$TERM" != "linux" && -f "$XDG_CONFIG_HOME/dircolors.ansi.dark" ]]; then
Offline
wait but later is elif section
elif [[ -f "$XDG_CONFIG_HOME/dircolors" ]]; thenUkrainian
Offline
And do you have such a file?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
of course
Ukrainian
Offline
Please go over your whole bashrc and debug it:
if [ -e $HOME/.bash_functions ]; then
source $HOME/.bash_functions
fi
if [ -e $HOME/.bash_variables ]; then
source $HOME/.bash_functions
fiIf it's still broken afterwards, debug all the files you source.
Offline
I'd esp. also look into $XDG_CONFIG_HOME …
Offline
If it's still broken afterwards, debug all the files you source.
Thanks for pointing me a mistype, bash_variables it's a leftover. It was empty. I removed it.
I'd esp. also look into $XDG_CONFIG_HOME …
cat $XDG_CONFIG_HOME/dircolors.ansi.darkGives me output, so no mistypes here. And properly file dircolors.ansi.dark, for now, has been downloaded from github (first message)
Ukrainian
Offline
I the script or an interactive shell?
What's "echo $XDG_CONFIG_HOME"
Does
# Dir colors
if [[ "$TERM" != "linux" && -f "$XDG_CONFIG_HOME/dircolors.ansi.dark" ]]; then
eval $(dircolors "$XDG_CONFIG_HOME/dircolors.ansi.dark")
elif [[ -f "$XDG_CONFIG_HOME/dircolors" ]]; then
dircolors "$XDG_CONFIG_HOME/dircolors"
eval $(dircolors "$XDG_CONFIG_HOME/dircolors")
figet you the expectable output?
Offline
0 webcapcha@home-laptop:~$ echo $XDG_CONFIG_HOME
/home/webcapcha/.configNow I've rewritten as
# Dir colors
if [[ -f "$XDG_CONFIG_HOME/dircolors.ansi.dark" ]]; then
eval $(dircolors "$XDG_CONFIG_HOME/dircolors.ansi.dark")
elif [[ -f "$XDG_CONFIG_HOME/dircolors" ]]; then
eval $(dircolors "$XDG_CONFIG_HOME/dircolors")
fiSo, didn't get, what do you mean expectable output?
Ukrainian
Offline
*NOT* in an interactive shell.
If you run dircolors in that segment it should print the variable that would be set by the following eval - does that happen?
Offline
well, is it correct that you mean to comment out
# [[ $- != *i* ]] && returnand try?
But even in this case shell is interactive.
Ukrainian
Offline
I want you to not inspect the variable by typing something into a shell but inside the bashrc.
Offline
cat $XDG_CONFIG_HOME/dircolors.ansi.darkGives me output, so no mistypes here.
That much has been obvious from the start - that would never have been in question based on your symptoms. What would be relevant is whether the following different command produces output - and specifically if it produces the output you want to use for your colors in the tty, which, for some unspecified reason, are different than the colors you are trying to use elsewhere:
cat $XDG_CONFIG_HOME/dircolors"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
So I simply added echo $XDG_CONFIG_HOME in .bashrc
and then source it
0 webcapcha@home-laptop:~$ source .bashrc
/home/webcapcha/.configUkrainian
Offline
I give up. This is going nowhere.
Offline
Pages: 1