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
fe6588d8
Commit
fe6588d8
authored
Oct 14, 2016
by
Muhammad Herdiansyah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expanded distro_shorthand to Solaris
parent
ed41c15c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
README.md
README.md
+1
-1
config
config/config
+1
-1
neofetch
neofetch
+5
-2
neofetch.1
neofetch.1
+1
-1
No files found.
README.md
View file @
fe6588d8
...
...
@@ -366,7 +366,7 @@ alias neofetch2="neofetch \
Possible values: name, speed, tiny, on, off
--cpu_cores on/off Whether or not to display the number of CPU cores
--distro_shorthand on/off Shorten the output of distro (tiny, on, off)
NOTE: This is only possible on Linux
and Mac OS X
NOTE: This is only possible on Linux
, Mac OS X, and Solaris
--kernel_shorthand on/off Shorten the output of kernel
--uptime_shorthand on/off Shorten the output of uptime (tiny, on, off)
--refresh_rate on/off Whether to display the refresh rate of each monitor
...
...
config/config
View file @
fe6588d8
...
...
@@ -62,7 +62,7 @@ kernel_shorthand="on"
# Distro
# Shorten the output of distro (tiny, on, off)
# NOTE: This is only possible on Linux
and Mac OS X
# NOTE: This is only possible on Linux
, Mac OS X, and Solaris
distro_shorthand
=
"off"
# Show 'x86_64' and 'x86' in 'Distro:' output.
...
...
neofetch
View file @
fe6588d8
...
...
@@ -231,7 +231,10 @@ getdistro() {
;;
"Solaris"
)
distro=
"
$(
awk
'NR==1{print $1 " " $2;}'
/etc/release
)
"
case
"
$distro_shorthand
"
in
"on"
|
"tiny"
) distro=
"
$(
awk
'NR==1{print $1 " " $2;}'
/etc/release
)
"
;;
*) distro=
"
$(
awk
'NR==1{print $1 " " $2 " " $3;}'
/etc/release
)
"
;;
esac
;;
esac
...
...
@@ -2901,7 +2904,7 @@ usage() { cat << EOF
Possible values: name, speed, tiny, on, off
--cpu_cores on/off Whether or not to display the number of CPU cores
--distro_shorthand on/off Shorten the output of distro (tiny, on, off)
NOTE: This is only possible on Linux
and Mac OS X
NOTE: This is only possible on Linux
, Mac OS X, and Solaris
--kernel_shorthand on/off Shorten the output of kernel
--uptime_shorthand on/off Shorten the output of uptime (tiny, on, off)
--refresh_rate on/off Whether to display the refresh rate of each monitor
...
...
neofetch.1
View file @
fe6588d8
...
...
@@ -41,7 +41,7 @@ Whether or not to display the number of CPU cores
.B \--distro_shorthand 'on/off'
Shorten the output of distro (tiny, on, off)
.br
NOTE: This is only possible on Linux
and Mac OS X
NOTE: This is only possible on Linux
, Mac OS X, and Solaris
.TP
.B \--kernel_shorthand 'on/off'
Shorten the output of kernel
...
...
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