Skip to content
This repository was archived by the owner on Feb 21, 2021. It is now read-only.

Commit da6dbad

Browse files
author
Tiger Sachse
committed
Merge pull request #16 from tgsachse/v1.1.1
V1.1.1
2 parents d7945cb + 1d1ab41 commit da6dbad

File tree

8 files changed

+255
-68
lines changed

8 files changed

+255
-68
lines changed

docs/CHANGES.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Changelog for Shellcuts
22

3+
v1.1.1 - 01/08/2018
4+
- Added manual page
5+
36
v1.1.0 - 01/03/2018
47
- Renamed to Shellcuts for universality
58
- Revamped readme

docs/PYPI_DESCRIPTION.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please see the GitHub project page for more information, located at https://www.github.com/tgsachse/shellcuts

docs/README.rst

+19-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
shellcuts - directory shortcuts for your shell
22
----------------------------------------------
33

4-
Shellcuts allow you to save locations in your filesystem and jump to those locations later with a simple command (much like bookmarks). This program aims to include what other, similar programs are missing, and acts as a drop-in replacement for Bashmarks_ and `other-shell derivatives`_. Shellcuts includes the following features:
4+
Shellcuts are directory shortcuts for your shell. This program allows you to save locations as 'shellcuts' and then cut back to those locations with a single, short command. This program is inspired by Bashmarks and hopes to improve on Bashmarks_ by supporting more systems and shells. Shellcuts includes the following features:
55

66
- creates named shellcuts to any location in the filesystem
77
- lists all saved shellcuts
88
- deletes shellcuts by name
99
- saves shellcuts on a per-user basis
1010
- supports Bashmarks syntax for user comfort and familiarity
11-
- written mostly in Python for portability
12-
- supports Bash shell
13-
- installable via Pip
1411

1512
Planned features include:
1613

1714
- tab completion
1815
- Fish, Zsh, Csh, Korn shell support
1916
- installable via APT, Homebrew
20-
- possibly include z-like_ functionality
17+
- z-like_ features
2118

2219
installation
2320
------------
@@ -51,12 +48,12 @@ If, for whatever reason, the other methods don't work for you or maybe just aren
5148

5249
usage
5350
-----
54-
When you first install Shellcuts, you must run the program initialization script once to finish configuration. Simply run this command to launch the configuration utility:
51+
When you first install Shellcuts, you must initialize the program once before it can be used. Run this command to launch the configuration utility:
5552
::
5653
$ sc-init
57-
The configuration utility will give you the option to automatically configure your system to use Shellcuts, or it will tell you how to do the configuration manually. I highly recommend using the automatic configuration, as it's not prone to human error and is designed to make setup super easy!
54+
The configuration utility will automatically configure your system, or if you'd prefer it can show you how to do the configuration manually. It's highly recommended that you use the automatic configuration, as it's safe from human error and is really easy!
5855

59-
The core command for Shellcuts is ``sc``. By default, Shellcuts includes these aliases for ``sc``:
56+
The core command for Shellcuts is ``sc`` and by default this program includes the aliases:
6057

6158
- ``shellcut``
6259
- ``shellcuts``
@@ -73,26 +70,28 @@ Feel free to use any of the above or the main ``sc`` command to operate Shellcut
7370

7471
Here is a list of all available options/flags:
7572

76-
NEW: ``-n, --new [name]``
77-
Add a shellcut for the current working directory, named *name*.
78-
DELETE: ``-d, --delete [name]``
79-
Delete shellcut named *name* if it exists.
80-
PRINT: ``-p, --print [name]``
81-
Print the location saved by the shellcut named *name*.
73+
DELETE: ``-d, --delete [shellcut]``
74+
Delete the specified shellcut if it exists.
75+
(planned) HELP: ``-h, --help``
76+
Display a help menu for quick reference.
8277
LIST: ``-l, --list``
8378
List all available shellcuts.
79+
NEW: ``-n, --new [shellcut]``
80+
Create a new shellcut for the current working directory.
81+
PRINT: ``-p, --print [shellcut]``
82+
Print the specified shellcut to the screen.
8483
(planned) VERSION: ``-v, --version``
85-
Get Shellcuts version information.
84+
Display version information.
85+
(planned) BASHMARKS SYNTAX: ``--enable-bashmarks-syntax, --disable-bashmarks-syntax``
86+
Enable or disable Bashmarks syntax. (default: enabled)
8687
(planned) Z SETTINGS: ``--enable-z, --disable-z``
87-
Enable or disable z-like features.
88+
Enable or disable z-like features. (default: enabled)
8889
(planned) REINITIALIZE: ``--init``
89-
Rerun the initial setup script.
90-
(planned) HELP: ``-h, --help``
91-
Launch a help menu.
90+
Launch the initialization script.
9291

9392
examples
9493
--------
95-
Here are some examples of Shellcuts in action.
94+
Here are some examples of Shellcuts in action. See this program's man page for more.
9695
::
9796
$ pwd # Show current directory
9897
/home/tgsachse/Downloads
@@ -121,7 +120,6 @@ Here are some examples of Shellcuts in action.
121120
bin : /bin
122121

123122
.. _Bashmarks: https://www.github.com/huyng/bashmarks
124-
.. _`other-shell derivatives`: https://github.com/search?utf8=%E2%9C%93&q=bashmarks&type=
125123
.. _z-like: https://github.com/rupa/z
126124
.. _`Python 3`: https://www.python.org
127125
.. _Pip: https://pip.pypa.io/en/stable/

docs/shellcuts.1

+214
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
.TH shellcuts 1 "8 January 2018" "1.1.1"
2+
3+
.SH NAME
4+
shellcuts - directory shortcuts for your shell.
5+
6+
.SH SYNOPSIS
7+
sc [shellcut] [-flag] [flag option]
8+
9+
.SH DESCRIPTION
10+
Shellcuts are directory shortcuts for your shell. This program allows you to save locations as 'shellcuts' and then cut back to those locations with a single, short command. This program is inspired by Bashmarks and hopes to improve on Bashmarks by supporting more systems and shells. Shellcuts includes the following features:
11+
.PP
12+
.RS 2
13+
- create named shellcuts to any location in the filesystem
14+
.PP
15+
- list all saved shellcuts
16+
.PP
17+
- delete shellcuts by name
18+
.PP
19+
- save shellcuts on a per-user basis
20+
.PP
21+
- support Bashmarks syntax for user comfort and familiarity
22+
.RE
23+
.PP
24+
Planned features include:
25+
.RS 2
26+
.PP
27+
- tab completion
28+
.PP
29+
- Fish, Zsh, Csh, Korn shell support
30+
.PP
31+
- z-like features
32+
.RE
33+
34+
.SH OPTIONS
35+
.B -d, --delete
36+
.I shellcut
37+
.RS 4
38+
delete the specified shellcut if it exists
39+
.RE
40+
.PP
41+
.B -h, --help
42+
.RS 4
43+
display a help menu for quick reference
44+
.RE
45+
.PP
46+
.B -l, --list
47+
.RS 4
48+
list all available shellcuts
49+
.RE
50+
.PP
51+
.B -n, --new
52+
.I shellcut
53+
.RS 4
54+
create a new shellcut for the current working directory
55+
.RE
56+
.PP
57+
.B -p, --print
58+
.I shellcut
59+
.RS 4
60+
print the specified shellcut to the screen
61+
.RE
62+
.PP
63+
.B -v, --version:
64+
display version information
65+
.RE
66+
.PP
67+
.B --enable-bashmarks-syntax, --disable-bashmarks-syntax
68+
.RS 4
69+
enable or disable Bashmarks syntax (default: enabled)
70+
.RE
71+
.PP
72+
.B --enable-z, --disable-z
73+
.RS 4
74+
enable or disable z-like features (default: enabled)
75+
.RE
76+
.PP
77+
.B --init
78+
.RS 4
79+
launch the initialization script
80+
.RE
81+
82+
.SH USAGE
83+
When you first install Shellcuts, you must initialize the program once before it can be used. Run this command to launch the configuration utility:
84+
.PP
85+
.RS 2
86+
.I sc-init
87+
.RE
88+
.PP
89+
The configuration utility will automatically configure your system, or if you'd prefer it can show you how to do the configuration manually. It's highly recommended that you use the automatic configuration, as it's safe from human error and is really easy!
90+
.PP
91+
The core command for Shellcuts is
92+
.I sc
93+
and by default this program includes the following aliases:
94+
.PP
95+
.RS 2
96+
-
97+
.I shellcut
98+
.PP
99+
-
100+
.I shellcuts
101+
.PP
102+
-
103+
.I shellc
104+
.PP
105+
-
106+
.I scut
107+
.PP
108+
.RE
109+
Feel free to use any of the above or the main
110+
.I sc
111+
command to operate Shellcuts. This program also includes aliases to replicate Bashmarks syntax. They are as follows:
112+
.PP
113+
.RS 2
114+
-
115+
.I d
116+
to delete, equivalent to
117+
.I sc -d
118+
.PP
119+
-
120+
.I g
121+
to go, equivalent to
122+
.I sc
123+
.PP
124+
-
125+
.I l
126+
to list, equivalent to
127+
.I sc -l
128+
.PP
129+
-
130+
.I p
131+
to print, equivalent to
132+
.I sc -p
133+
.PP
134+
-
135+
.I s
136+
to save, equivalent to
137+
.I sc -n
138+
.RE
139+
140+
.SH EXAMPLES
141+
Save a shellcut named
142+
.I downloads
143+
using the user's current directory:
144+
.PP
145+
.RS 4
146+
.I sc -n downloads
147+
.RE
148+
.PP
149+
Go to the shellcut named
150+
.I downloads
151+
if it exists:
152+
.PP
153+
.RS 4
154+
.I sc downloads
155+
.RE
156+
.PP
157+
List all saved shellcuts:
158+
.PP
159+
.RS 4
160+
.I sc -l
161+
.RE
162+
.PP
163+
Delete shellcut named
164+
.I binaries
165+
if it exists:
166+
.PP
167+
.RS 4
168+
.I sc -d binaries
169+
.RE
170+
.PP
171+
Print shellcut named
172+
.I home
173+
if it exists:
174+
.PP
175+
.RS 4
176+
.I sc -p home
177+
.RE
178+
.PP
179+
Save a new shellcut named
180+
.I downloads
181+
using Bashmarks syntax, then print the same shellcut:
182+
.PP
183+
.RS 4
184+
.I s downloads
185+
.PP
186+
.I p downloads
187+
.RE
188+
.PP
189+
Go to shellcut named
190+
.I pictures
191+
using an
192+
.I sc
193+
alias:
194+
.PP
195+
.RS 4
196+
.I scut pictures
197+
.RE
198+
199+
.SH FILES
200+
.B ~/.config/shellcuts/shellcuts.sh
201+
.RS 4
202+
storage location for all shellcuts
203+
.RE
204+
205+
.SH LICENSE
206+
GPLv3
207+
208+
.SH SOURCE
209+
Visit
210+
.I https://www.github.com/tgsachse/shellcuts
211+
to view the source code for this program and give the project a star if you really liked it!
212+
213+
.SH AUTHOR
214+
Tiger Sachse (tgsachse)

setup.py

+11-14
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,21 @@
1212
Legal:
1313
Author: Tiger Sachse
1414
License: GPLv3
15-
Version: 1.1.0
15+
Version: 1.1.1
1616
Initial Release: 12/31/2017
17-
Current Release: 01/02/2018
17+
Current Release: 01/08/2018
1818
"""
19-
20-
from setuptools import setup
21-
22-
F_DESCRIPTION = 'docs/README.rst'
19+
LONG_DESCRIPTION = 'docs/PYPI_DESCRIPTION.txt'
2320

2421
def load_long_description():
25-
"""Load description for PyPI from file"""
26-
with open(F_DESCRIPTION, 'r') as f:
27-
long_description = f.read()
22+
with open(LONG_DESCRIPTION, 'r') as f:
23+
return f.read()
2824

29-
return long_description
25+
from setuptools import setup
3026

3127
setup(
3228
name='shellcuts',
33-
version='1.1.0',
29+
version='1.1.1.1',
3430
author='Tiger Sachse',
3531
description='Directory shortcuts for your shell.',
3632
long_description=load_long_description(),
@@ -55,9 +51,10 @@ def load_long_description():
5551
python_requires='>=3',
5652
data_files=[
5753
('bin', ['shellcuts/sc-handler',
58-
'shellcuts/sc-init',
59-
'shellcuts/shellcuts.sh']),
54+
'shellcuts/sc-init']),
55+
('share/shellcuts', ['shellcuts/shellcuts.sh']),
6056
('share/doc/shellcuts', ['docs/CHANGES.txt',
6157
'docs/LICENSE.txt',
62-
'docs/README.rst'])]
58+
'docs/README.rst']),
59+
('share/man/man1',['docs/shellcuts.1'])]
6360
)

shellcuts/sc

-11
This file was deleted.

shellcuts/sc-handler

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Returns:
2424
Legal:
2525
Author: Tiger Sachse
2626
License: GPLv3
27-
Version: 1.1.0
27+
Version: 1.1.1
2828
Initial Release: 12/31/2017
29-
Current Release: 01/02/2018
29+
Current Release: 01/08/2018
3030
"""
3131

3232
import os

0 commit comments

Comments
 (0)