2
2
espelhamento de https://github.com/Hilbis/Hilbish sincronizado 2025-07-14 14:52:02 +00:00

website: document opts

Esse commit está contido em:
sammyette 2023-04-14 01:09:49 -04:00
commit 27971d0102
Assinado por: sammyette
ID da chave GPG: 904FC49417B44DCD
3 arquivos alterados com 45 adições e 3 exclusões

Ver arquivo

@ -19,13 +19,17 @@ jobs:
hugo-version: 'latest'
extended: true
- name: Build
run: 'cd website && hugo --minify'
- name: Set branch name
id: branch
run: echo "::set-output name=BRANCH_NAME::${GITHUB_REF##*/}"
- name: Fix base URL
if: steps.branch.outputs.BRANCH_NAME != 'master' && github.repository_owner == 'Rosettea'
run: sed -i "s%baseURL = 'https://rosettea.github.io/Hilbish/'%baseURL = 'https://rosettea.github.io/Hilbish/versions/${{ steps.branch.outputs.BRANCH_NAME }}'%" website/config.toml
- name: Build
run: 'cd website && hugo --minify'
- name: Deploy
if: steps.branch.outputs.BRANCH_NAME == 'master' && github.repository_owner == 'Rosettea'
uses: peaceiris/actions-gh-pages@v3

37
docs/opts.md Arquivo normal
Ver arquivo

@ -0,0 +1,37 @@
---
title: "Opts"
date: 2023-04-14T01:01:10-04:00
draft: false
---
Opts are simple settings and switches to control certain Hilbish behavior.
This ranges from things like the greeting messages on bootup to "autocd"
functionality.
They can be changed via a simple assign (like `hilbish.opts.namehere = true`).
# Available Opts
## `autocd`
The `autocd` opt (default false) makes it so that if a lone path is
ran, Hilbish will change directory to that path.
Example:
```
sammy ~ ∆ hilbish.opts.autocd = true
sammy ~ ∆ ~/Downloads
sammy ~/Downloads ∆
```
## `history`
This opt controls if Hilbish will store commands in history. It
is default true.
## `greeting`
The `greeting` is exactly as the name says: a greeting message on Hilbish
startup. It can be set to any value, and when Hilbish finishes initalizing
will print that text. The `greeting` will be passed to Lunacolors for
formatting.
## `motd`
The `motd` is a message to summarize the current running version. It can be
set as a boolean (true or false).

1
website/content/docs/opts.md Link simbólico
Ver arquivo

@ -0,0 +1 @@
../../../docs/opts.md