Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
723bddfb
Commit
723bddfb
authored
May 06, 2006
by
Hisham Muhammad
Browse files
Add support for $HTOPRC, as suggested by Luis Limon
parent
33113fe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Settings.c
View file @
723bddfb
...
...
@@ -32,10 +32,15 @@ Settings* Settings_new(ProcessList* pl, Header* header) {
this
->
pl
=
pl
;
this
->
header
=
header
;
char
*
home
;
char
*
homerc
;
home
=
getenv
(
"HOME_ETC"
);
if
(
!
home
)
home
=
getenv
(
"HOME"
);
if
(
!
home
)
home
=
""
;
this
->
userSettings
=
String_cat
(
home
,
"/.htoprc"
);
rcfile
=
getenv
(
"HOMERC"
);
if
(
!
rcfile
)
this
->
userSettings
=
String_cat
(
home
,
"/.htoprc"
);
else
this
->
userSettings
=
String_copy
(
rcfile
);
this
->
colorScheme
=
0
;
this
->
changed
=
false
;
this
->
delay
=
DEFAULT_DELAY
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment