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
e408e6f8
Commit
e408e6f8
authored
Oct 30, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kernel: Remove kernel_shorthand tiny
parent
48c8ad7b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
14 deletions
+6
-14
README.md
README.md
+1
-2
config
config/config
+1
-1
neofetch
neofetch
+3
-10
neofetch.1
neofetch.1
+1
-1
No files found.
README.md
View file @
e408e6f8
...
@@ -449,8 +449,7 @@ alias neofetch2="neofetch \
...
@@ -449,8 +449,7 @@ alias neofetch2="neofetch \
NOTE This only works on linux.
NOTE This only works on linux.
--distro_shorthand on/off Shorten the output of distro (tiny, on, off)
--distro_shorthand on/off Shorten the output of distro (tiny, on, off)
NOTE: This is only possible on Linux, macOS, and Solaris
NOTE: This is only possible on Linux, macOS, and Solaris
--kernel_shorthand Shorten the output of kernel
--kernel_shorthand on/off Shorten the output of kernel
Takes: on, tiny, off
--uptime_shorthand on/off Shorten the output of uptime (tiny, on, off)
--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
--refresh_rate on/off Whether to display the refresh rate of each monitor
Unsupported on Windows
Unsupported on Windows
...
...
config/config
View file @
e408e6f8
...
@@ -55,7 +55,7 @@ printinfo() {
...
@@ -55,7 +55,7 @@ printinfo() {
# Kernel
# Kernel
# Show more kernel info
# Show more kernel info
# --kernel_shorthand on, off
, tiny
# --kernel_shorthand on, off
kernel_shorthand
=
"on"
kernel_shorthand
=
"on"
...
...
neofetch
View file @
e408e6f8
...
@@ -266,15 +266,9 @@ gettitle() {
...
@@ -266,15 +266,9 @@ gettitle() {
# Kernel {{{
# Kernel {{{
getkernel() {
getkernel() {
# Hardcode kernel_shorthand=tiny on BSD systems.
case "
$os
" in
"
BSD
") kernel_shorthand="
tiny
" ;;
esac
case "
$kernel_shorthand
" in
case "
$kernel_shorthand
" in
"
on
") kernel_flags="
-sr
" ;;
"
on
") kernel_flags="
-r
" ;;
"
tiny
") kernel_flags="
-r
" ;;
"
off
") kernel_flags="
-sr
" ;;
"
off
") kernel_flags="
-srm
" ;;
esac
esac
kernel="
$(
uname
$kernel_flags
)
"
kernel="
$(
uname
$kernel_flags
)
"
}
}
...
@@ -2891,8 +2885,7 @@ usage() { cat << EOF
...
@@ -2891,8 +2885,7 @@ usage() { cat << EOF
NOTE This only works on linux.
NOTE This only works on linux.
--distro_shorthand on/off Shorten the output of distro (tiny, on, off)
--distro_shorthand on/off Shorten the output of distro (tiny, on, off)
NOTE: This is only possible on Linux, macOS, and Solaris
NOTE: This is only possible on Linux, macOS, and Solaris
--kernel_shorthand Shorten the output of kernel
--kernel_shorthand on/off Shorten the output of kernel
Takes: on, tiny, off
--uptime_shorthand on/off Shorten the output of uptime (tiny, on, off)
--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
--refresh_rate on/off Whether to display the refresh rate of each monitor
Unsupported on Windows
Unsupported on Windows
...
...
neofetch.1
View file @
e408e6f8
...
@@ -53,7 +53,7 @@ Shorten the output of distro (tiny, on, off)
...
@@ -53,7 +53,7 @@ Shorten the output of distro (tiny, on, off)
.br
.br
NOTE: This is only possible on Linux, macOS, and Solaris
NOTE: This is only possible on Linux, macOS, and Solaris
.TP
.TP
.B \--kernel_shorthand 'on/off
/tiny
'
.B \--kernel_shorthand 'on/off'
Shorten the output of kernel
Shorten the output of kernel
.TP
.TP
.B \--uptime_shorthand 'on/off'
.B \--uptime_shorthand 'on/off'
...
...
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