Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
535d220e
Commit
535d220e
authored
Feb 28, 2016
by
Dylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug with not creating config in stdout mode
parent
35154941
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
neofetch
neofetch
+3
-6
No files found.
neofetch
View file @
535d220e
...
@@ -2184,6 +2184,7 @@ getconfig () {
...
@@ -2184,6 +2184,7 @@ getconfig () {
source "
$config_file
"
source "
$config_file
"
return
return
fi
fi
mkdir -p "
$HOME
/.config/neofetch/
"
# Check
$HOME
/.config/neofetch and create the
# Check
$HOME
/.config/neofetch and create the
# dir/files if they don't exist.
# dir/files if they don't exist.
...
@@ -2209,10 +2210,11 @@ getconfig () {
...
@@ -2209,10 +2210,11 @@ getconfig () {
# Check the commandline flags early for '--config none/off'
# Check the commandline flags early for '--config none/off'
case "
$@
" in
case "
$@
" in
*"
--config off
"* | *'--config "
off
"'* | *"
--config
'off'
"* |
\
*"
--config off
"* | *'--config "
off
"'* | *"
--config
'off'
"* |
\
*"
--config none
"* | *'--config "
none
"'* | *"
--config
'none'
"*)
*"
--config none
"* | *'--config "
none
"'* | *"
--config
'none'
"*
| *"
--stdout
"*
)
config="
off
"
config="
off
"
;;
;;
esac
esac
[ "
$config
" == "
on
" ] && getconfig
# }}}
# }}}
...
@@ -2463,11 +2465,6 @@ done
...
@@ -2463,11 +2465,6 @@ done
# Restore cursor and clear screen on ctrl+c
# Restore cursor and clear screen on ctrl+c
trap 'printf "
\033[?25h
"; clear; exit' 2
trap 'printf "
\033[?25h
"; clear; exit' 2
if [ "
$config
" == "
on
" ]; then
mkdir -p "
$HOME
/.config/neofetch/
"
getconfig
fi
# Get colors / bold
# Get colors / bold
colors
colors
bold
bold
...
...
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