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
c2fcf35a
Commit
c2fcf35a
authored
Apr 16, 2020
by
Crestwave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neofetch: only fork for {BASH,OIL}_VERSION when necessary
parent
ff6d59ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
neofetch
neofetch
+10
-3
No files found.
neofetch
View file @
c2fcf35a
...
...
@@ -33,7 +33,6 @@ version=7.0.0
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
...
...
@@ -1590,7 +1589,11 @@ get_shell() {
[[ $shell_version != on ]] && return
case ${shell_name:=${SHELL##*/}} in
bash) shell+=${BASH_VERSION/-*} ;;
bash)
[[ $BASH_VERSION ]] ||
BASH_VERSION=$("$SHELL" -c "printf %s \"\$BASH_VERSION\"")
shell+=${BASH_VERSION/-*}
;;
sh|ash|dash) ;;
...
...
@@ -1601,7 +1604,11 @@ get_shell() {
;;
osh)
shell+=$("$SHELL" -c "printf %s \"\$OIL_VERSION\"")
if [[ $OIL_VERSION ]]; then
shell+=$OIL_VERSION
else
shell+=$("$SHELL" -c "printf %s \"\$OIL_VERSION\"")
fi
;;
tcsh)
...
...
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