Commit graph

166 commits

Author SHA1 Message Date
Jonathan Hodgson
98a1d5177a ZSH: adds aws key regex to currenWordCompletions 2021-09-27 13:27:40 +01:00
Jonathan Hodgson
dbdec93713 Adds some more options to the change command function 2021-09-07 17:07:25 +01:00
Jonathan Hodgson
16b919dc3e Adds some telemetry env variables and composer to path 2021-09-07 17:06:25 +01:00
Jonathan Hodgson
5df1e386e6 SHELLS: adds a few aliases 2021-09-07 17:05:36 +01:00
Jonathan Hodgson
197ab225d4 Updates zsh plugins 2021-09-07 16:56:43 +01:00
Jonathan Hodgson
11405338f5 Adds regex to current word completion 2021-09-07 14:00:06 +01:00
Jonathan Hodgson
ad9a516eb8 ZSH: make find file only give 1 result 2021-08-31 11:04:46 +01:00
Jonathan Hodgson
fb3fb4365e ZSH: adds ^n keybinding to expand current word's filename
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
2021-08-31 10:46:58 +01:00
Jonathan Hodgson
afb31a7589 ZSH: fixes issue for creaing directory with ~ in path
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
2021-08-31 10:42:56 +01:00
Jonathan Hodgson
b086532297 ZSH: Completion: Hashcat: fix broken mode selection
Hashcat has changed the way it displays modes. Update the completion
script to reflect this.
2021-08-24 15:58:23 +01:00
Jonathan Hodgson
d92ac70946 ZSH: prompt: show branch on older versions of git 2021-08-23 15:24:34 +01:00
Jonathan Hodgson
5c159344fc ZSH: checks for project in prompt 2021-08-23 15:22:05 +01:00
Jonathan Hodgson
bda6ca95e4 ZSH: checks for project in prompt 2021-08-23 15:19:48 +01:00
Jonathan Hodgson
0fdbfe45b7 ZSH: checks for commands existance before running 2021-08-23 15:16:56 +01:00
Jonathan Hodgson
ec6bad4c1a Makes right alt my compose key
Compose key is used for inputting special characters more easily.

See the compose table for examples:

https://help.ubuntu.com/community/GtkComposeTable
2021-04-01 16:02:28 +01:00
Jonathan Hodgson
f555ccd352 Make colours work now focus has been disabled 2021-03-21 14:54:10 +00:00
Jonathan Hodgson
f6964bf3ba Only show explicitly installed when tab-completing pacman -R*
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.
2021-03-21 12:59:17 +00:00
Jonathan Hodgson
dfa5f5e424 Deletes focus zsh file 2021-03-21 12:57:57 +00:00
Jonathan Hodgson
428a59cafd Adds cat to auto-notify ignore list 2021-03-21 12:56:40 +00:00
Jonathan Hodgson
983896f644 ZSH: Makes prompt shorter in narrow terminals
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
2021-02-18 21:38:50 +00:00
Jonathan Hodgson
3187c98e35 Adds check for fzf 2021-02-03 23:16:35 +00:00
Jonathan Hodgson
bc8e2e2f97 Adds checks to promptconfig 2021-02-03 23:12:28 +00:00
Jonathan Hodgson
f6cbc5ddad Check bat exists before overiding it 2021-02-03 23:04:10 +00:00
Jonathan Hodgson
32dcc8c957 Adds check before running ruby commands 2021-02-03 23:00:28 +00:00
Jonathan Hodgson
74f433ccb1 ALIAS: makes verifySSL use the chacha ssl if it's available 2021-01-13 16:11:50 +00:00
Jonathan Hodgson
36b268a1ba Alias: changes kb to keys
I would like to use kb for a new tool I'm making.
2020-12-18 20:12:02 +00:00
Jonathan Hodgson
c83bb775b4 aliases: adds enum4linux -> enum4linux-ng
This is a newer re-write with additional features and written in python

https://github.com/cddmp/enum4linux-ng
2020-12-17 09:42:13 +00:00
Jonathan Hodgson
fd6d4258df aliases: fixes check for a couple of commands
I had forgotten to put the -p flag on type when checking for the
existence of commands
2020-12-17 09:41:09 +00:00
Jonathan Hodgson
e95aef3c0d SH: adds bash shebang to shared dotfiles for syntax highlighting 2020-12-14 09:23:38 +00:00
Jonathan Hodgson
959b57110c SHELL: Adds aliases for cp and mv with progress bars
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
2020-11-02 17:17:27 +00:00
Jonathan Hodgson
6f8de2427e SHELL: Adds a shortcut for wingcc
I can never remember the name of the command to compile a windows exe in
linux so I created an alias for it called wingcc
2020-11-02 17:13:39 +00:00
Jonathan Hodgson
7a82ef8f29 SHELL: adds alias so sc is runs sc-im 2020-11-02 17:12:33 +00:00
Jonathan Hodgson
9f00cf46a4 REMIND: Adjust alias for better sorting
Default is dddd

aadd makes it sort date and time in ascending order (earlier first)
2020-11-02 17:09:19 +00:00
Jonathan Hodgson
303ff410f7 REMIND/ZSH: set environment variables and alias
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
2020-10-14 17:46:45 +01:00
Jonathan Hodgson
ae532f2ca0 ZSH: allows command swap key binding to support multiple groups
The groups are now separated by : character and each element in the
group is separated by a space

I have added a group for swapping ping and mtr
2020-10-14 12:29:16 +01:00
Jonathan Hodgson
d68a0628b2 ZSH: Add alt+c keybinding for swapping commands
By pushing alt+c, zsh will now cycle between vim, ls and cd. In the
future I may add more cycle groups
2020-10-13 15:59:16 +01:00
Jonathan Hodgson
85507b9aae ZSH: makes edit with vim shortcut Ctrl+x
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
2020-10-06 14:33:07 +01:00
Jonathan Hodgson
516af805c3 Adds git-fuzzy to zsh 2020-09-22 15:39:54 +01:00
Jonathan Hodgson
dcad943088 Adds unread emails to prompt 2020-09-19 11:23:21 +01:00
Jonathan Hodgson
f6f7c490b8 Adds fzf completion to ytaudio 2020-09-19 11:22:53 +01:00
Jonathan Hodgson
b48b57851a Adds sl to commands not to notify on end 2020-09-19 11:20:34 +01:00
Jonathan Hodgson
3a647e8756 Makes zsh expand initial command properly 2020-09-19 11:19:58 +01:00
Jonathan Hodgson
90231cca39 Changes to how cat works mainly
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
2020-09-15 17:13:32 +01:00
Jonathan Hodgson
83a047a8a3 Adds conflicts to git prompt config 2020-07-29 17:21:26 +01:00
Jonathan Hodgson
65ddfa3342 Makes fg-bg work on more listeners 2020-07-29 17:20:45 +01:00
Jonathan Hodgson
8c2363f25e makes fzf go to top on change 2020-07-29 17:19:50 +01:00
Jonathan Hodgson
2d17e09b50 Adds aliased with prefix function 2020-07-29 17:16:18 +01:00
Jonathan Hodgson
3ddbac879f Adds chaselinks option to zsh 2020-07-29 17:15:15 +01:00
Jonathan Hodgson
170ecf906d Organises things
Mainly organising aliases and functions, also adds some environment
variables
2020-07-29 17:13:40 +01:00
Jonathan Hodgson
edc2538ec6 Stops tab completion prompting if there is a lot 2020-05-25 11:57:58 +01:00