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
ff6d59ef
Commit
ff6d59ef
authored
Apr 16, 2020
by
Crestwave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neofetch: add support for OSH
parent
e1af688b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
neofetch
neofetch
+21
-6
No files found.
neofetch
View file @
ff6d59ef
...
@@ -30,7 +30,14 @@
...
@@ -30,7 +30,14 @@
version=7.0.0
version=7.0.0
bash_version=${BASH_VERSION/.*}
if [[ "$BASH_VERSION" ]]; then
bash_version=${BASH_VERSION/.*}
else
BASH_VERSION=$(bash -c "printf %s \"\$BASH_VERSION\"")
bash_version=5
shopt -s eval_unsafe_arith
fi
sys_locale=${LANG:-C}
sys_locale=${LANG:-C}
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-${HOME}/.config}
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-${HOME}/.config}
PATH=$PATH:/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec
PATH=$PATH:/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec
...
@@ -1593,6 +1600,10 @@ get_shell() {
...
@@ -1593,6 +1600,10 @@ get_shell() {
shell=${shell/version}
shell=${shell/version}
;;
;;
osh)
shell+=$("$SHELL" -c "printf %s \"\$OIL_VERSION\"")
;;
tcsh)
tcsh)
shell+=$("$SHELL" -c "printf %s \$tcsh")
shell+=$("$SHELL" -c "printf %s \$tcsh")
;;
;;
...
@@ -2338,7 +2349,7 @@ get_gpu() {
...
@@ -2338,7 +2349,7 @@ get_gpu() {
{ unset -v gpu; continue; }
{ unset -v gpu; continue; }
case $gpu in
case $gpu in
*"
a
dvanced"*)
*"
A
dvanced"*)
brand="${gpu/*AMD*ATI*/AMD ATI}"
brand="${gpu/*AMD*ATI*/AMD ATI}"
brand="${brand:-${gpu/*AMD*/AMD}}"
brand="${brand:-${gpu/*AMD*/AMD}}"
brand="${brand:-${gpu/*ATI*/ATi}}"
brand="${brand:-${gpu/*ATI*/ATi}}"
...
@@ -2352,13 +2363,13 @@ get_gpu() {
...
@@ -2352,13 +2363,13 @@ get_gpu() {
gpu="$brand $gpu"
gpu="$brand $gpu"
;;
;;
*"
nvidia
"*)
*"
NVIDIA
"*)
gpu="${gpu/*\[}"
gpu="${gpu/*\[}"
gpu="${gpu/\]*}"
gpu="${gpu/\]*}"
gpu="NVIDIA $gpu"
gpu="NVIDIA $gpu"
;;
;;
*"
i
ntel"*)
*"
I
ntel"*)
gpu="${gpu/*Intel/Intel}"
gpu="${gpu/*Intel/Intel}"
gpu="${gpu/\(R\)}"
gpu="${gpu/\(R\)}"
gpu="${gpu/Corporation}"
gpu="${gpu/Corporation}"
...
@@ -2369,7 +2380,7 @@ get_gpu() {
...
@@ -2369,7 +2380,7 @@ get_gpu() {
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
;;
;;
*"
virtualb
ox"*)
*"
VirtualB
ox"*)
gpu="VirtualBox Graphics Adapter"
gpu="VirtualBox Graphics Adapter"
;;
;;
...
@@ -4261,7 +4272,11 @@ info() {
...
@@ -4261,7 +4272,11 @@ info() {
[[ "$prin" ]] && return
[[ "$prin" ]] && return
# Update the variable.
# Update the variable.
output="$(trim "${!2:-${!1}}")"
if [[ "$2" ]]; then
output="$(trim "${!2}")"
else
output="$(trim "${!1}")"
fi
if [[ "$2" && "${output// }" ]]; then
if [[ "$2" && "${output// }" ]]; then
prin "$1" "$output"
prin "$1" "$output"
...
...
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