This is useful if I want to edit a script but I'm not in my scripts
directory. It will look for a file with the name I have typed and
replace it.
for example:
vim yt<^n>
will be replaced with
vim /home/jonathan/.bin/yt
The script will first try `which <filename>`, searching the path. If
that fails, it will do `locate "*/filename"` which will search for the
file elsewhere
The alt-m key binding is used to create a directory for the current
"word". This change makes it work if it has something like ~ in the
name.
${~var} is used to turn on GLOB_SUBST. The string resulting from the
expansion will be interpreted as a pattern anywhere that is possible,
such as filenames expanding `~`
man zshexpn
When tabcompleting for pacman -R*, I generally only want to show things
that I've explicitly installed, rather than things that have been
installed automatically as a dependency.
This is mainly achieved by no longer showing the full path.
If the terminal is less than 100 characters, it will show a preceding
icon, >> then the bottom most folder name.
The >> indicates that folders have been missed.
I have added an icon for my dotfiles folder
I found patches at the link below for mv and cp that add options for
progress bars. I have applied and compiled them and named the commands
cpg and mvg as recommended in the readme. They are named like that (I
assume) because they add a -g flag for progress.
If they are present and in my path, I always want to use them with the
progress bar flag in place of cp or mv
https://github.com/jarun/advcpmv
I have added an environment variable to make rem look for it's default
configuration file in ~/.config/remind/remind.rem
I have added an alias so rem will output in colour
I have made zsh run `rem` when I open a new terminal if I don't have a
project set. I may remove this in the future
For some reason ctrl+x ctrl+e has stopped working. I think it is
probably related to the use of suckless scroll. This uses ctrl+e which
is interpreted as a scroll.
For now though, using ctrl+x is fine
Cat is now a function rather than an alias. It will tie in with grc if
possible and add syntax highlighting to the file
if not, will fall back do using bat
Now pressing ctrl t will sometimes search directories if more
appropriate.
Pressing alt+c will now to whatever ctrl+t doesn't do if I ever need the
alternative type.