Commit graph

22 commits

Author SHA1 Message Date
Howard Abrams
d9a5ca433f Created an argument parser for eshell ... getopts-flavor
Actually simplifies and makes the other functions more readable,
all the while giving me more flexibility for more functions.
2022-10-29 21:23:18 -07:00
Howard Abrams
fa1545b088 Adding pcomplete to eshell 2022-10-25 22:05:47 -07:00
Howard Abrams
7c105189aa Fix bug with remote login from host entry in buffer 2022-10-17 21:19:37 -07:00
Howard Abrams
14688bb1d5 Replaced bcat with flow and wrote ebb
The idea is that I can "bump" and "fetch" with "ebb" and "flow" data
to and from eshell to an editing buffer.
2022-10-14 22:19:54 -07:00
Howard Abrams
a2a61b296b Simple eshell prompt with PWD on modeline
Seems like a nicer way to get more screen estate.
2022-10-12 22:35:24 -07:00
Howard Abrams
595d435789 Clean up the eshell aliases 2022-10-10 14:42:43 -07:00
Howard Abrams
f9003e172f Do I really want to call execute-command-on-buffer?
This is a really nifty function, but should I call it all the time?
Adding the name of the buffer automatically is sweet... until I don't
want that feature.
2022-10-04 20:41:01 -07:00
Howard Abrams
a00bcbf88c Fix bug with e eshell function, as well as make aliases
I might actually type `vi` or `emacs`, and we can't have that mess
things up.
2022-10-02 23:11:03 -07:00
Howard Abrams
a6db663a1c Created the more and less function
These just call `view-file` and this is because I can't get the alias
working correctly. Besides, I would like them to work with more than
one file.
2022-10-02 22:28:45 -07:00
Howard Abrams
2294abe9d9 Call rx from eshell with rx to write the regexp
But `rx` outputs Emacs regular expressions. The pcre2el project can
convert that for us.
2022-10-01 23:40:42 -07:00
Howard Abrams
62a9262f43 Created a "lsd" command to call lsd if installed
But format it like the built-in "eshell/ls" command.
2022-10-01 21:06:49 -07:00
Howard Abrams
b399c30bb6 Reformat with dash library to make code more readable
Using the anaphoric macros from the dash library allows the banner
code to be smaller and I feel more readable. Yes, I could have run the
`ls` command into another buffer and copied it, I have bigger plans
for displaying my directory listing.
2022-09-29 09:18:59 -07:00
Howard Abrams
d5e30ec98f Argh ...
My attempt at making a gnarly banner function more readable by
creating lexical functions with `cl-flet` to pass to `mapconcat` was
thwarted! Who would have thunk that `mapconcat' couldn't access a
symbol reference to a function created by `cl-flet*'!?
2022-09-28 22:36:30 -07:00
Howard Abrams
3724a7decb Display directory files on new eshell instance
Whenever I open a shell, even if I know where and why I'm there, I
always type `ls`, so in this case, I made the eshell banner display
a listing of all of the files.
2022-09-28 22:17:27 -07:00
Howard Abrams
8d0579952b Added a "buffer cat" to eshell to pipe a buffer to commands
Fixed a bunch of prose issues.
2022-09-28 19:40:08 -07:00
Howard Abrams
4db75eb591 Replace dwim-shell-command with eshell-command
Gives the same feature, but has offers more.
2022-09-28 13:41:45 -07:00
Howard Abrams
ecc9c1ee8f Now $$ is an array of command output history
Extended the `eshell-variable-aliases-list` to call a new function that
stores the output of the commands in an ring. This is a pretty cool feature.
2022-09-26 17:21:42 -07:00
Howard Abrams
334c3f9cff Access past version's of eshell command output
Simple addition of some rings to store a bit of eshell command
history. I really can't believe how easy this stuff is to write.
2022-09-23 21:56:49 -07:00
Howard Abrams
e9cdcc5c5c Expanded eshell output variables to include a file
The output from the last eshell command is now also stored in a file
by the name, $OUTAF.

Hrm ... now I want this output, as part of a history....
2022-09-23 16:30:25 -07:00
Howard Abrams
2a6302c43d Add $OUTPUT and $LAST eshell variables
These contain the output from the last eshell command. Cool how easily
I implemented this.
2022-09-23 16:20:56 -07:00
Howard Abrams
bcb014a9ef Create a "map" function for eshell to replace the for loop
Better? It is cool that it is so easy to do.

May need to expand it so that subcommands work too. We'll see if this
fits my use case.
2022-09-21 22:57:20 -07:00
Howard Abrams
f9b4789199 Pulled eshell functions out of remoting
And placed it into its own "eshell" configuration file.
2022-09-20 23:09:42 -07:00