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
665e9ceb
Commit
665e9ceb
authored
Dec 16, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Birthday: Add back --birthday_time
parent
31930d02
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
config
config/config
+15
-0
neofetch
neofetch
+5
-0
neofetch.1
neofetch.1
+1
-6
No files found.
config/config
View file @
665e9ceb
...
@@ -292,6 +292,21 @@ public_ip_host="http://ident.me"
...
@@ -292,6 +292,21 @@ public_ip_host="http://ident.me"
song_shorthand
=
"off"
song_shorthand
=
"off"
# Birthday
# Whether to show the time in the output
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --birthday_time
#
# Example:
# on: 'Thu 14 Apr 2016 11:50 PM'
# off: 'Thu 14 Apr 2016'
birthday_time
=
"on"
# Text Colors
# Text Colors
...
...
neofetch
View file @
665e9ceb
...
@@ -2969,6 +2969,9 @@ convert_time() {
...
@@ -2969,6 +2969,9 @@ convert_time() {
*
)
time
=
"
$((
hour
-
12
))${
min
}
PM"
;;
*
)
time
=
"
$((
hour
-
12
))${
min
}
PM"
;;
esac
esac
# Toggle showing the time
[[
"
$birthday_time
"
==
"off"
]]
&&
unset time
# Print the birthday.
# Print the birthday.
printf
"%s"
"
$week_day
$day
$month
$year
$time
"
printf
"%s"
"
$week_day
$day
$month
$year
$time
"
}
}
...
@@ -3031,6 +3034,7 @@ INFO
...
@@ -3031,6 +3034,7 @@ INFO
--shell_version on/off Enable/Disable showing
\$
SHELL version
--shell_version on/off Enable/Disable showing
\$
SHELL version
--ip_host url URL to query for public IP
--ip_host url URL to query for public IP
--song_shorthand on/off Print the Artist/Title on seperate lines
--song_shorthand on/off Print the Artist/Title on seperate lines
--birthday_time on/off Enable/Disable showing the time in birthday output.
TEXT FORMATTING
TEXT FORMATTING
...
@@ -3199,6 +3203,7 @@ get_args() {
...
@@ -3199,6 +3203,7 @@ get_args() {
"--shell_version"
)
shell_version
=
"
$2
"
;;
"--shell_version"
)
shell_version
=
"
$2
"
;;
"--ip_host"
)
public_ip_host
=
"
$2
"
;;
"--ip_host"
)
public_ip_host
=
"
$2
"
;;
"--song_shorthand"
)
song_shorthand
=
"
$2
"
;;
"--song_shorthand"
)
song_shorthand
=
"
$2
"
;;
"--birthday_time"
)
birthday_time
=
"
$2
"
;;
"--disable"
)
"--disable"
)
for
func
in
"
$@
"
;
do
for
func
in
"
$@
"
;
do
case
"
$func
"
in
case
"
$func
"
in
...
...
neofetch.1
View file @
665e9ceb
...
@@ -88,14 +88,9 @@ URL to query for public IP
...
@@ -88,14 +88,9 @@ URL to query for public IP
.TP
.TP
\fB\-\-song_shorthand\fR on/off
\fB\-\-song_shorthand\fR on/off
Print the Artist/Title on seperate lines
Print the Artist/Title on seperate lines
.HP
\fB\-\-birthday_shorthand\fR on/off Shorten the output of birthday
.TP
.TP
\fB\-\-birthday_time\fR on/off
\fB\-\-birthday_time\fR on/off
Enable/Disable showing the time in birthday output
Enable/Disable showing the time in birthday output.
.TP
\fB\-\-birthday_format\fR format
Format the birthday output. (Uses 'date' cmd format)
.PP
.PP
TEXT FORMATTING
TEXT FORMATTING
.TP
.TP
...
...
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