-
Notifications
You must be signed in to change notification settings - Fork 1
/
execdir.1
47 lines (30 loc) · 1.13 KB
/
execdir.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.TH execdir 1 "2022-07-13" "execdir"
.SH NAME
execdir \- execute a command in a specific directory
.SH SYNOPSIS
\fBexecdir\fR [\fB-h\fR] [\fB-v\fR] [\fB-s\fR] [\fB-a\fR \fINAME\fR \fIPATH\fR] [\fB-r\fR \fINAME\fR] [\fB-l\fR] [\fIARGS\fR...]
.SH DESCRIPTION
\fBexecdir\fR is a tool that lets you run a command in a specific directory. It supports shell commands and path aliases. \fBexecdir\fR will try to get an alias if path doesn't exist.
There is also a symlink called \fBx\fR, so you can type less using it.
.SH OPTIONS
.IP "\fB-h\fR"
Display the help message and exit
.IP "\fB-v\fR"
Display the version number of execdir and exit
.IP "\fB-s\fR"
Execute the command as a shell command
.IP "\fB-a\fR \fINAME\fR \fIPATH\fR"
Create an alias for a path
.IP "\fB-r\fR \fINAME\fR"
Delete an alias
.IP "\fB-l\fR"
List all aliases
.SH EXECDIR FILE
All aliases are defined in the \fB~/.execdir\fR file. Each line contains an alias name and a path delimited by a colon:
name:path
.SH AUTHOR
Gustavo Costa <xfgusta@gmail.com>
.SH BUGS
Report bugs to <https://github.com/xfgusta/execdir/issues>
.SH COPYRIGHT
Copyright (c) 2022 Gustavo Costa