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
fa26836b
Commit
fa26836b
authored
Jun 04, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:dylanaraps/neofetch
parents
bb6c4d37
01a5c7da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
CHANGELOG.md
CHANGELOG.md
+1
-0
neofetch
neofetch
+16
-10
No files found.
CHANGELOG.md
View file @
fa26836b
...
...
@@ -46,6 +46,7 @@
-
Added font support for mate-terminal.
**[@mstraube](https://github.com/mstraube)**
-
[
Termite
]
Fix font mismatch.
**[@MatthewCox](https://github.com/MatthewCox)**
-
Use
`$SSH_TTY`
for terminal detection if machine is connected via SSH.
**GPU**
...
...
neofetch
View file @
fa26836b
...
...
@@ -243,12 +243,13 @@ get_model() {
;;
"Mac OS X"
)
if
[[
"
$(
kextstat |
grep
"FakeSMC"
)
"
]]
;
then
if
[[
"
$(
kextstat |
grep
"FakeSMC"
)
"
!=
""
]]
;
then
model
=
"Hackintosh (SMBIOS:
$(
sysctl
-n
hw.model
)
)"
else
model
=
"
$(
sysctl
-n
hw.model
)
"
fi
;;
"iPhone OS"
)
case
"
$machine_arch
"
in
"iPad1,1"
)
model
=
"iPad"
;;
...
...
@@ -1647,15 +1648,20 @@ get_term() {
# Check
$PPID
for terminal emulator.
while [[ -z "
$term
" ]]; do
parent="
$(
get_ppid
"
$parent
"
)
"
name="
$(
get_process_name
"
$parent
"
)
"
case "
${
name
//
}
" in
"
${
SHELL
/*\/
}
" | *"
sh
" | "
tmux
"* | "
screen
" | "
su
"*) ;;
"
login
"* | *"
Login
"* | "
init
" | "
(
init
)
") term="
$(
tty
)
" ;;
"
ruby
" | "
1
" | "
systemd
" | "
sshd
"* | "
python
"* | "
USER
"*"
PID
"*) break ;;
"
gnome-terminal-
") term="
gnome-terminal
" ;;
*) term="
${
name
##*/
}
" ;;
esac
if [[ "
$SSH_CONNECTION
" ]]; then
term="
$SSH_TTY
"
else
parent="
$(
get_ppid
"
$parent
"
)
"
[[ -z "
$parent
" ]] && break
name="
$(
get_process_name
"
$parent
"
)
"
case "
${
name
//
}
" in
"
${
SHELL
/*\/
}
" | *"
sh
" | "
tmux
"* | "
screen
" | "
su
"*) ;;
"
login
"* | *"
Login
"* | "
init
" | "
(
init
)
") term="
$(
tty
)
" ;;
"
ruby
" | "
1
" | "
systemd
" | "
sshd
"* | "
python
"* | "
USER
"*"
PID
"*) break ;;
"
gnome-terminal-
") term="
gnome-terminal
" ;;
*) term="
${
name
##*/
}
" ;;
esac
fi
done
# Log that the function was run.
...
...
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