aboutsummaryrefslogtreecommitdiffhomepage
path: root/st.1
diff options
context:
space:
mode:
authorDavid Gricar <coppie@protonmail.com>2024-02-01 05:13:29 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-02-03 16:08:20 +0300
commita8a9fdc32ffc5ee6e3953322a48e0a8dbceff5a7 (patch)
tree037bfcc7b4a5af660a594a35a1bd332e2a0e4774 /st.1
parent9846a56bd7fdc86bf788db04bbbcbde7b7eb9952 (diff)
downloadst-fork-a8a9fdc32ffc5ee6e3953322a48e0a8dbceff5a7.tar.gz
Add switch to provide initial working directory
This patch adds -p switch which takes one argument 'path' and can be used to set the initial working directory of the new st instance. It acts the same as running 'cd path' command after starting the st instance. Source: https://st.suckless.org/patches/workingdir/
Diffstat (limited to 'st.1')
-rw-r--r--st.18
1 files changed, 8 insertions, 0 deletions
diff --git a/st.1 b/st.1
index 39120b4..b82beb3 100644
--- a/st.1
+++ b/st.1
@@ -6,6 +6,8 @@ st \- simple terminal
.RB [ \-aiv ]
.RB [ \-c
.IR class ]
+.RB [ \-d
+.IR path ]
.RB [ \-f
.IR font ]
.RB [ \-g
@@ -30,6 +32,8 @@ st \- simple terminal
.RB [ \-aiv ]
.RB [ \-c
.IR class ]
+.RB [ \-d
+.IR path ]
.RB [ \-f
.IR font ]
.RB [ \-g
@@ -58,6 +62,10 @@ disable alternate screens in terminal
.BI \-c " class"
defines the window class (default $TERM).
.TP
+.BI \-d " path"
+changes the working directory to
+.IR path .
+.TP
.BI \-f " font"
defines the
.I font