-
Notifications
You must be signed in to change notification settings - Fork 0
My command-line toolbox
License
duncan-roe/command_line_tools
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Welcome to my command-line tools!
The majority of these are scripts or symbolic links to scripts.
3 are compiled programs: sources for all of them are here.
There are no releases of command-line tools.
You are recommended to clone it instead, and use "git pull" to get updates.
Most commands are in the bin directory below.
You could add them to your ~/bin or to /usr/local/bin,
but it's recommended to put command_line_tools/bin in your PATH
and only put local variants in ~/bin or /usr/local/bin. (You will have at least
3 local variants: the compiled versions of findit, disowntty and strerror).
(once strerror is in place, please also ln -s strerror strsignal).
Some commands come straight from dot_bashrc (derived from my .bashrc).
In order of appearance, these are:-
pd : is an extended pushd. pd <some dir> does a pushd to that dir,
but does not echo the new directory stack;
pd with no arg works similarly.
pd <some number> does pushd +<some number>,
For directories named "1", "2" &c. use e.g. `pd ./1`
pdd: (pd down) is like pd but the new directory is inserted below the current
entry in the stack rather than above. If (like me) you like to keep the
directory stack in order then you can use pdd to a subdir to do that.
svdirs : Save the directory stack alongside the individual bash history.
ppd : is a silent popd.
GS / GD / GL / GLP : aliases for git {status,display,log,log pretty}
s : unwinds one level of shell invocation, i.e. it exits.
In other words, it reStarts the process that invoked this shell.
.bashrc does not define s when run in the bottom shell (SHLVL=1),
in this case bin/s is obeyed instead.
rdy: alternative to "s" which just tells you what shell level you're at,
rather than terminating the shell if it's above 1.
] : displays directory stack 1 entry/line numbered
]] : displays subset of directory stack with entries containing $1
XRB: Gives a panning 640x480 display (for running old games).
You will likely need to customise it to match your screen resolution
(mine is 2560x1440) and video output if other than DVI-0.
XRS: Reverts to full screen from XRB
pc1: ping -c1
c : 1-letter alias for cat
exit_sh : alias to save directory stack and exit.
Needs you to be using the per-sesion history system
documented at
https://mlug-au.org/lib/exe/fetch.php?media=20250224-bash_histories.pdf
(Briefly, history files are in ~/histfiles).
About
My command-line toolbox
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published