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
eaa4b35e
Unverified
Commit
eaa4b35e
authored
Jan 28, 2020
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neofetch: Added --title_fqdn. Closes #1397
parent
8f03e708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
neofetch
neofetch
+18
-1
No files found.
neofetch
View file @
eaa4b35e
...
...
@@ -85,6 +85,16 @@ print_info() {
info cols
}
# Title
# Hide/Show Fully qualified domain name.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --title_fqdn
title_fqdn="off"
# Kernel
...
...
@@ -1277,7 +1287,12 @@ get_model() {
get_title() {
user=${USER:-$(id -un || printf %s "${HOME/*\/}")}
hostname=${HOSTNAME:-$(hostname)}
case $title_fqdn in
on) hostname=$(hostname -f) ;;
*) hostname=${HOSTNAME:-$(hostname)} ;;
esac
title=${title_color}${bold}${user}${at_color}@${title_color}${bold}${hostname}
length=$((${#user} + ${#hostname} + 1))
}
...
...
@@ -4634,6 +4649,7 @@ INFO:
NOTE: You can supply multiple args. eg. 'neofetch --disable cpu gpu'
--title_fqdn on/off Hide/Show Fully Qualified Domain Name in title.
--package_managers on/off Hide/Show Package Manager names . (on, tiny, off)
--os_arch on/off Hide/Show OS architecture.
--speed_type type Change the type of cpu speed to display.
...
...
@@ -4873,6 +4889,7 @@ get_args() {
while [[ "$1" ]]; do
case $1 in
# Info
"--title_fqdn") title_fqdn="$2" ;;
"--package_managers") package_managers="$2" ;;
"--os_arch") os_arch="$2" ;;
"--cpu_cores") cpu_cores="$2" ;;
...
...
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