Skip to content

Commit

Permalink
changed default to create SHSHRC if not exists yet
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Lai <[email protected]>
  • Loading branch information
soraxas committed Jan 23, 2021
1 parent c0ff4d8 commit 72584ad
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 31 deletions.
2 changes: 1 addition & 1 deletion libexec/shsh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ for arg; do
;;
--version)
cat << EOF
shsh (shell script handler) v2.4.3
shsh (shell script handler) v2.4.4
Copyright (c) 2014 Juan Ibiapina, 2020 Tin Lai (@soraxas)
This is free software; see the source for copying conditions. There is NO
Expand Down
4 changes: 4 additions & 0 deletions libexec/shsh-install
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ shsh-_link-completions "$folder"


## SHSHRC
# by default, create SHSHRC if not exists yet.
if [ ! -e "$SHSHRC" ]; then
touch "$SHSHRC" || true
fi
# add successfully installed package to shshrc
if [ -e "$SHSHRC" ]; then
set +e # allow non-zero exit status in pattern matching
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-cleanup.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,cleanup \/\fR[\fI\,-d|--dry\/\fR]
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-commands.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,commands\/\fR
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-completions.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,completions <command>\/\fR
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-help.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,help \/\fR[\fI\,--usage\/\fR] \fI\,COMMAND\/\fR
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-init.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B eval
\fI\,"$(shsh init SHELL)"\/\fR
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-install.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,install \/\fR[\fI\,site\/\fR]\fI\,/<package>\/\fR[\fI\,@ref\/\fR] [\fI\,<folder>/<folder>\/\fR]
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-link.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,link \/\fR[\fI\,--no-deps\/\fR] \fI\,<directory> <package>\/\fR
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-list.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,list \/\fR[\fI\,-d|--details\/\fR]
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-outdated.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,outdated \/\fR[\fI\,-q|--quiet\/\fR]
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-package-path.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B source
\fI\,"$(shsh package-path <package>)/file.sh"\/\fR
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-refresh.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,refresh <package> \/\fR[\fI\,--verbose\/\fR] [\fI\,-a|--all\/\fR]
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-self-upgrade.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,self-upgrade\/\fR
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-uninstall.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,uninstall <package>\/\fR
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh-upgrade.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,upgrade <package> \/\fR[\fI\,-f|--force\/\fR]
Expand Down
4 changes: 2 additions & 2 deletions man/man1/shsh.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH SHSH "1" "January 2021" "shell script handler v2.4.3" "User Commands"
.TH SHSH "1" "January 2021" "shell script handler v2.4.4" "User Commands"
.SH NAME
shsh \- manual page for shsh v2.4.3
shsh \- manual page for shsh v2.4.4
.SH SYNOPSIS
.B shsh
\fI\,<command> \/\fR[\fI\,<command args>\/\fR] [\fI\,--verbose\/\fR] [\fI\,--help\/\fR]
Expand Down

0 comments on commit 72584ad

Please sign in to comment.