sites

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

index.md (583B)


      1 option
      2 ======
      3 
      4 Description
      5 -----------
      6 This patch adds a variable called `option` to `config.def.h`,
      7 allowing st to run the shell with an argument.
      8 
      9 #### Example
     10 
     11 `static char *shell = "/usr/bin/ash";`
     12 
     13 `char *option = "-l";`
     14 
     15 Now st runs `ash` with the `-l` argument, so `ash` starts as a login shell and sources
     16 the `/etc/profile.d/` files.
     17 
     18 [![ash-uses-profile.d-scripts](st-option-preview-grayscale.png)](st-option.png)
     19 
     20 Download
     21 --------
     22 * [st-option-20250404-98610fc.diff](st-option-20250404-98610fc.diff)
     23 
     24 Authors
     25 -------
     26 * Mertoalex Ashley - <mertoalex+suckless@disroot.org>