pfetch: de and editor support
This commit is contained in:
parent
6c2ffdd07e
commit
29b09c8622
2 changed files with 18 additions and 5 deletions
21
pfetch
21
pfetch
|
@ -277,10 +277,6 @@ get_kernel() {
|
|||
esac
|
||||
}
|
||||
|
||||
get_shell() {
|
||||
log shell "${SHELL##*/}" >&6
|
||||
}
|
||||
|
||||
get_host() {
|
||||
case $os in
|
||||
Linux*)
|
||||
|
@ -672,6 +668,23 @@ get_memory() {
|
|||
log memory "${mem_used:-?}M / ${mem_full:-?}M" >&6
|
||||
}
|
||||
|
||||
get_shell() {
|
||||
# Display the basename of the '$SHELL' environment variable.
|
||||
log shell "${SHELL##*/}" >&6
|
||||
}
|
||||
|
||||
get_editor() {
|
||||
# Display the value of '$VISUAL', if it's empty, display the
|
||||
# value of '$EDITOR'.
|
||||
log editor "${VISUAL:-$EDITOR}" >&6
|
||||
}
|
||||
|
||||
get_de() {
|
||||
# Display the value of '$XDG_CURRENT_DESKTOP', if it's empty,
|
||||
# display the value of '$DESKTOP_SESSION'.
|
||||
log de "${XDG_CURRENT_DESKTOP:-$DESKTOP_SESSION}" >&6
|
||||
}
|
||||
|
||||
get_palette() {
|
||||
# Print the first 8 terminal colors. This uses the existing
|
||||
# sequences to change text color with a sequence prepended
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue