sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 1e2d2122823de78b4aaf49c25310f30efe0c5896
parent 3da6d4f79249d171dd2d5db7224f25ae2222db39
Author: elbachir-one <bachiralfa@gmail.com>
Date:   Mon,  7 Apr 2025 02:13:29 +0100

[st][patches][option] Fixed index.md

Diffstat:
Mst.suckless.org/patches/option/index.md | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/st.suckless.org/patches/option/index.md b/st.suckless.org/patches/option/index.md @@ -1,18 +1,19 @@ option -========= +====== Description ----------- -This patch adds variable called `option` to config.def.h so st can run shell with argument. +This patch adds a variable called `option` to `config.def.h`, +allowing st to run the shell with an argument. +#### Example -Example -------- `static char *shell = "/usr/bin/ash";` `char *option = "-l";` -so now st runs ash with `-l` argument so ash opens as login shell so it sources /etc/profile.d/ files. +Now st runs `ash` with the `-l` argument, so `ash` starts as a login shell and sources +the `/etc/profile.d/` files. [![ash-uses-profile.d-scripts](st-option-preview-grayscale.png)](st-option.png)