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
b759a7a8
Commit
b759a7a8
authored
Nov 15, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
General: Rename $version to $bash_version
parent
2215fa95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
neofetch
neofetch
+6
-6
No files found.
neofetch
View file @
b759a7a8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# Created by Dylan Araps
# Created by Dylan Araps
# https://github.com/dylanaraps/
# https://github.com/dylanaraps/
version
=
"
${
BASH_VERSION
/.*
}
"
bash_
version
=
"
${
BASH_VERSION
/.*
}
"
sys_locale
=
"
${
LANG
:-
C
}
"
sys_locale
=
"
${
LANG
:-
C
}
"
XDG_CONFIG_HOME
=
"
${
XDG_CONFIG_HOME
:-${
HOME
}
/.config
}
"
XDG_CONFIG_HOME
=
"
${
XDG_CONFIG_HOME
:-${
HOME
}
/.config
}
"
...
@@ -661,7 +661,7 @@ get_wm_theme() {
...
@@ -661,7 +661,7 @@ get_wm_theme() {
esac
esac
wm_theme=
"
${
wm_theme
//\
'}"
wm_theme=
"
${
wm_theme
//\
'}"
(("$version" >= 4)) && wm_theme="${wm_theme^}"
(("$
bash_
version" >= 4)) && wm_theme="${wm_theme^}"
}
}
get_cpu() {
get_cpu() {
...
@@ -1291,7 +1291,7 @@ get_style() {
...
@@ -1291,7 +1291,7 @@ get_style() {
theme="
$(
grep
"^[^#]*
$kde
"
"
$kde_config_file
"
)
"
theme="
$(
grep
"^[^#]*
$kde
"
"
$kde_config_file
"
)
"
theme="
${
theme
/
${
kde
}
*=
}
"
theme="
${
theme
/
${
kde
}
*=
}
"
(("
$version
" >= 4)) && theme="
${
theme
^
}
"
(("
$
bash_
version
" >= 4)) && theme="
${
theme
^
}
"
gtk_shorthand="
on
"
gtk_shorthand="
on
"
return
return
...
@@ -1366,7 +1366,7 @@ get_style() {
...
@@ -1366,7 +1366,7 @@ get_style() {
gtk3theme=${gtk3theme//\'
}
gtk3theme=${gtk3theme//\'
}
# Uppercase the first letter of each gtk theme
# Uppercase the first letter of each gtk theme
if (("
$version
" >= 4)); then
if (("
$
bash_
version
" >= 4)); then
gtk2theme="
${
gtk2theme
^
}
"
gtk2theme="
${
gtk2theme
^
}
"
gtk3theme="
${
gtk3theme
^
}
"
gtk3theme="
${
gtk3theme
^
}
"
fi
fi
...
@@ -1510,7 +1510,7 @@ get_term_font() {
...
@@ -1510,7 +1510,7 @@ get_term_font() {
;;
;;
esac
esac
(("
$version
" >= 4)) && term_font="
${
term_font
^
}
"
(("
$
bash_
version
" >= 4)) && term_font="
${
term_font
^
}
"
}
}
get_disk() {
get_disk() {
...
@@ -1859,7 +1859,7 @@ get_ascii() {
...
@@ -1859,7 +1859,7 @@ get_ascii() {
err "
Ascii: Ascii file not found, using distro ascii.
"
err "
Ascii: Ascii file not found, using distro ascii.
"
# Lowercase the distro name
# Lowercase the distro name
if (("
$version
" <= 3)); then
if (("
$
bash_
version
" <= 3)); then
ascii="
$(
tr
'[:upper:]'
'[:lower:]'
<<<
"
$ascii_distro
"
)
"
ascii="
$(
tr
'[:upper:]'
'[:lower:]'
<<<
"
$ascii_distro
"
)
"
else
else
ascii="
${
ascii_distro
,,
}
"
ascii="
${
ascii_distro
,,
}
"
...
...
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