Merge branch 'master' of github.com:dylanaraps/neofetch
This commit is contained in:
commit
fa26836b53
2 changed files with 17 additions and 10 deletions
|
@ -46,6 +46,7 @@
|
||||||
|
|
||||||
- Added font support for mate-terminal. **[@mstraube](https://github.com/mstraube)**
|
- Added font support for mate-terminal. **[@mstraube](https://github.com/mstraube)**
|
||||||
- [Termite] Fix font mismatch. **[@MatthewCox](https://github.com/MatthewCox)**
|
- [Termite] Fix font mismatch. **[@MatthewCox](https://github.com/MatthewCox)**
|
||||||
|
- Use `$SSH_TTY` for terminal detection if machine is connected via SSH.
|
||||||
|
|
||||||
**GPU**
|
**GPU**
|
||||||
|
|
||||||
|
|
8
neofetch
8
neofetch
|
@ -243,12 +243,13 @@ get_model() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
if [[ "$(kextstat | grep "FakeSMC")" ]]; then
|
if [[ "$(kextstat | grep "FakeSMC")" != "" ]]; then
|
||||||
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
||||||
else
|
else
|
||||||
model="$(sysctl -n hw.model)"
|
model="$(sysctl -n hw.model)"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"iPhone OS")
|
"iPhone OS")
|
||||||
case "$machine_arch" in
|
case "$machine_arch" in
|
||||||
"iPad1,1") model="iPad" ;;
|
"iPad1,1") model="iPad" ;;
|
||||||
|
@ -1647,7 +1648,11 @@ get_term() {
|
||||||
|
|
||||||
# Check $PPID for terminal emulator.
|
# Check $PPID for terminal emulator.
|
||||||
while [[ -z "$term" ]]; do
|
while [[ -z "$term" ]]; do
|
||||||
|
if [[ "$SSH_CONNECTION" ]]; then
|
||||||
|
term="$SSH_TTY"
|
||||||
|
else
|
||||||
parent="$(get_ppid "$parent")"
|
parent="$(get_ppid "$parent")"
|
||||||
|
[[ -z "$parent" ]] && break
|
||||||
name="$(get_process_name "$parent")"
|
name="$(get_process_name "$parent")"
|
||||||
case "${name// }" in
|
case "${name// }" in
|
||||||
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su"*) ;;
|
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su"*) ;;
|
||||||
|
@ -1656,6 +1661,7 @@ get_term() {
|
||||||
"gnome-terminal-") term="gnome-terminal" ;;
|
"gnome-terminal-") term="gnome-terminal" ;;
|
||||||
*) term="${name##*/}" ;;
|
*) term="${name##*/}" ;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Log that the function was run.
|
# Log that the function was run.
|
||||||
|
|
Loading…
Reference in a new issue