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
eeaffac7
Commit
eeaffac7
authored
Jul 01, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:dylanaraps/neofetch
parents
2392b2c8
b367b241
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
.travis.yml
.travis.yml
+1
-1
config.conf
config/config.conf
+0
-2
travis.conf
config/travis.conf
+0
-2
neofetch
neofetch
+21
-17
No files found.
.travis.yml
View file @
eeaffac7
...
...
@@ -17,7 +17,7 @@ before_install:
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi
script
:
-
time ./neofetch --ascii --config config/travis -v
-
time ./neofetch --ascii --config config/travis
.conf
-v
# See this wiki page for why we're disabling these errors.
# https://github.com/dylanaraps/neofetch/wiki/Shellcheck-Exclusions
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch -e SC1090,SC2009,SC2012,SC2016,SC2034,SC2128,SC2153,SC2154,SC2178,SC2010; fi
config/config
→
config/config
.conf
View file @
eeaffac7
#!/usr/bin/env bash
#
# Neofetch config file
# https://github.com/dylanaraps/neofetch
...
...
config/travis
→
config/travis
.conf
View file @
eeaffac7
#!/usr/bin/env bash
#
# Neofetch config file for travis.ci
# https://github.com/dylanaraps/neofetch
...
...
neofetch
View file @
eeaffac7
...
...
@@ -1038,6 +1038,7 @@ get_cpu() {
cpu=
"
${
cpu
//Quad-Core
}
"
cpu=
"
${
cpu
//Six-Core
}
"
cpu=
"
${
cpu
//Eight-Core
}
"
cpu=
"
${
cpu
//, * Compute Cores
}
"
cpu=
"
${
cpu
//Core
}
"
cpu=
"
${
cpu
//with Radeon * Graphics
}
"
cpu=
"
${
cpu
//, altivec supported
}
"
...
...
@@ -3601,21 +3602,21 @@ get_full_path() {
}
get_default_config() {
if [[ -f "/etc/neofetch/config" ]]; then
default_config="/etc/neofetch/config"
if [[ -f "/etc/neofetch/config
.conf
" ]]; then
default_config="/etc/neofetch/config
.conf
"
elif [[ -f "/usr/local/etc/neofetch/config" ]]; then
default_config="/usr/local/etc/neofetch/config"
elif [[ -f "/usr/local/etc/neofetch/config
.conf
" ]]; then
default_config="/usr/local/etc/neofetch/config
.conf
"
elif [[ -f "/data/data/com.termux/files/usr/etc/neofetch/config" ]]; then
default_config="/data/data/com.termux/files/usr/etc/neofetch/config"
elif [[ -f "/data/data/com.termux/files/usr/etc/neofetch/config
.conf
" ]]; then
default_config="/data/data/com.termux/files/usr/etc/neofetch/config
.conf
"
elif [[ -f "/boot/home/config/non-packaged/etc/neofetch/config" ]]; then
default_config="/boot/home/config/non-packaged/etc/neofetch/config"
elif [[ -f "/boot/home/config/non-packaged/etc/neofetch/config
.conf
" ]]; then
default_config="/boot/home/config/non-packaged/etc/neofetch/config
.conf
"
else
[[ -z "$script_dir" ]] && script_dir="$(get_full_path "$0")"
default_config="${script_dir%/*}/config/config"
default_config="${script_dir%/*}/config/config
.conf
"
fi
if source "$default_config"; then
...
...
@@ -3640,19 +3641,22 @@ get_user_config() {
if
[[
-f
"
${
XDG_CONFIG_HOME
}
/neofetch/config"
]]
;
then
config_file
=
"
${
XDG_CONFIG_HOME
}
/neofetch/config"
elif
[[
-f
"/etc/neofetch/config"
]]
;
then
cp
"/etc/neofetch/config"
"
${
XDG_CONFIG_HOME
}
/neofetch"
config_file
=
"
${
XDG_CONFIG_HOME
}
/neofetch/config"
elif
[[
-f
"
${
XDG_CONFIG_HOME
}
/neofetch/config.conf"
]]
;
then
config_file
=
"
${
XDG_CONFIG_HOME
}
/neofetch/config.conf"
elif
[[
-f
"/usr/local/etc/neofetch/config"
]]
;
then
cp
"/usr/local/share/neofetch/config"
"
${
XDG_CONFIG_HOME
}
/neofetch"
config_file
=
"
${
XDG_CONFIG_HOME
}
/neofetch/config"
elif
[[
-f
"/etc/neofetch/config.conf"
]]
;
then
cp
"/etc/neofetch/config.conf"
"
${
XDG_CONFIG_HOME
}
/neofetch"
config_file
=
"
${
XDG_CONFIG_HOME
}
/neofetch/config.conf"
elif
[[
-f
"/usr/local/etc/neofetch/config.conf"
]]
;
then
cp
"/usr/local/share/neofetch/config.conf"
"
${
XDG_CONFIG_HOME
}
/neofetch"
config_file
=
"
${
XDG_CONFIG_HOME
}
/neofetch/config.conf"
else
[[
-z
"
$script_dir
"
]]
&&
script_dir
=
"
$(
get_full_path
"
$0
"
)
"
cp
"
${
script_dir
%/*
}
/config/config"
"
${
XDG_CONFIG_HOME
}
/neofetch"
config_file
=
"
${
XDG_CONFIG_HOME
}
/neofetch/config"
cp
"
${
script_dir
%/*
}
/config/config
.conf
"
"
${
XDG_CONFIG_HOME
}
/neofetch"
config_file
=
"
${
XDG_CONFIG_HOME
}
/neofetch/config
.conf
"
fi
source
"
$config_file
"
...
...
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