diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2022-03-30 00:54:02 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2022-03-30 00:54:02 -0300 |
commit | fe4452e7b622610c335229e8eac5f8937a192350 (patch) | |
tree | ceb12845bc126dd88a5438ad8173d469429f3e99 | |
parent | 5032772c2a295d885cdbac419a32b2ed2e528f2b (diff) |
Add startup notice
-rw-r--r-- | session.bash | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/session.bash b/session.bash index d6c02b3..423ad85 100644 --- a/session.bash +++ b/session.bash @@ -1,5 +1,18 @@ +# session.bash - A session management script for Bash # Copyright (C) 2021, 2022 Soni L. -# SPDX-License-Identifier: AGPL-3.0-or-later +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. # note: consider adding the following to your PS1: PS1='{$([[ "${HISTFILE#~/.bash_history.}" != "$HISTFILE" ]] && printf "@ " || printf "/ ")${HISTFILE#~/.bash_history.}} '"$PS1" @@ -24,7 +37,7 @@ session() { # load new session's history history -r # see setsessioncwd() - eval "$(grep -s '# '"$1"'$' ~/.bash_session_cwd | tail -n 1)" + eval "$(grep -s ' # '"$1"'$' ~/.bash_session_cwd | tail -n 1)" else echo "invalid session" false @@ -66,3 +79,7 @@ setsessioncwd() { savecwd() { history -s "$(printf 'cd %q' "$PWD")" } + +echo "session.bash Copyright (C) 2021, 2022 Soni L." +echo "SPDX-License-Identifier: AGPL-3.0-or-later." +echo "This software is made with love by a queer trans person." |