Commit fa26836b authored by Dylan Araps's avatar Dylan Araps

Merge branch 'master' of github.com:dylanaraps/neofetch

parents bb6c4d37 01a5c7da
...@@ -46,6 +46,7 @@ ...@@ -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**
......
...@@ -243,12 +243,13 @@ get_model() { ...@@ -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,15 +1648,20 @@ get_term() { ...@@ -1647,15 +1648,20 @@ get_term() {
# Check $PPID for terminal emulator. # Check $PPID for terminal emulator.
while [[ -z "$term" ]]; do while [[ -z "$term" ]]; do
parent="$(get_ppid "$parent")" if [[ "$SSH_CONNECTION" ]]; then
name="$(get_process_name "$parent")" term="$SSH_TTY"
case "${name// }" in else
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su"*) ;; parent="$(get_ppid "$parent")"
"login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;; [[ -z "$parent" ]] && break
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) break ;; name="$(get_process_name "$parent")"
"gnome-terminal-") term="gnome-terminal" ;; case "${name// }" in
*) term="${name##*/}" ;; "${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su"*) ;;
esac "login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;;
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) break ;;
"gnome-terminal-") term="gnome-terminal" ;;
*) term="${name##*/}" ;;
esac
fi
done done
# Log that the function was run. # Log that the function was run.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment