Commit graph

31 commits

Author SHA1 Message Date
d7c7fa9914 feat(sapling): get everything setup 2024-01-15 19:26:48 +00:00
7f95ee24f8 refactor(vim): move to eslint_d from eslint
Eslint has become slow for some projects for reasons unknown. In an
attempt to speed up my linting process, I'm experimenting with eslint_d,
which keeps a process running. For the time being, I'd like to keep
linting and formatting separate from the Language Server Protocol (LSP)
to avoid the need to install every LSP. This way, I can have `shfmt`
without the bash LSP, for example.

For JavaScript, I may consider moving this into an LSP since I use it
for work, which would justify combining responsibilities. However, for
now, I'll be giving eslint_d a try.
2023-11-08 07:56:41 +00:00
8a813aad8f chore(shell): add github shortcut so it shows shorter in the prompt
In the shell prompt when you were in a directory it would commonly be

`~s/github.com/AdeAttwood/Dotfiles|branch ⇒`

This mapping will shorten this down to try and make the prompt a bit
less intrusive when in a subdirectory of a project.

`~gh/AdeAttwood/Dotfiles|branch ⇒`
2023-11-06 08:30:42 +00:00
2cf91cdb16 chore(shell): add a checkpoint commit alias
When working on the start of a project its nice to know what you are
changing. Or when you are working on a refactor having points to get
back to is nice. When we are done we can go and clean up the history so
it makes sense, for review, or just give our points more descriptive
messages and you don't need to brake your flow when coding.
2023-11-04 07:25:46 +00:00
835d695ed0 feat(shell): add prr zsh plugin
This will use my directory structure to get the project namespace and
name for prr. This way we dont need to keep providing the extra info.
2023-08-21 10:30:24 +01:00
584667ab3a feat(shell): add autoload and install or ruby versions via .ruby-version 2023-04-04 09:30:02 +01:00
456c7dfd73 feat(zsh): create nvmrc plugin
Custom plugin to check the .nvmrc file. When entering a directory, it
checks to see if you have the desired node version installed for the
current project. If it is, it will use it automatically, if not, then it
will ask you if you want to install it. After, it will install all the
JS developer tools for that version of NodeJS.

This is a different implementation than the default oh-my-zsh version.
The main difference is that it will not reset the node version when
leaving a directory. It will only preform an action if there is a
`.nvmrc` file in the current directory. It will not even use the
`nvm_find_nvmrc` command because any interaction with nvm make the
stranded `cd` command extremely sluggish.
2023-03-16 20:45:13 +00:00
8849a1f277 chore(shell): change the layout of fzf commands
This is to keep things consistent with how I have ivy.nvim working in
vim. All fuzzy finding is now done at the bottom of the terminal with
the preview on top. This prevents the eyes to jumping up and down and
keep the focus to the bottom of the terminal.
2023-02-09 19:34:04 +00:00
Ade Attwood
c281311657 feat(vim): start moving back 2022-06-12 20:25:17 +01:00
Ade Attwood
acf6a0d08b chore(shell): add alias to switch kube namespaces 2022-02-19 09:21:09 +00:00
Ade Attwood
15906dc25d fix(shell): fzf escaping 2021-11-21 16:43:41 +00:00
Ade Attwood
075a167376 fix(shell): fshow command with delta
When running fshow we are piping it into less. This was interfering with delta
and loosing the formatting.

This removes the pipe and lets delta handle the paging in the default way with
all the highlighting.
2021-11-21 16:40:53 +00:00
Ade Attwood
dac5bfa299 feat(shell): record missing commands
This is so we can later add some alias for commands I frequently get incorrect
2021-11-21 16:30:43 +00:00
Ade Attwood
d4c96992ad refactor(shell): remove emacs zsh plugin and create my own
This dose the same thing as the built in oh-my-zsh plugin but this one can
update the paths to emacs that it will be used.

This will allow you to use a custom compiled version of emacs for testing and /
or pinning the version you want with the features you need.
2021-11-21 16:13:12 +00:00
Ade Attwood
bc512c7e5d feat(shell): add my-clone command for cloning git repertories
When cloning a repo I have all of the repertories structured on the file system
by "host" "group" then "name". This command will automatically clone the repo
into the correct directory based on the name and the move into the cloned repo
directory.

An example of a repo to be cloned is the dotfiles repo has the URL of
`git@gitlab.com:AdeAttwood/dotfiles.git` so on the file system it will be in the
source directory `gitlab.com/AdeAttwood/dotfiles`. This keep all of the repos
well structured and searchable.
2021-11-21 16:06:21 +00:00
Ade Attwood
13845d5098 fix(shell): git recommit command
When running git commit it was supposed to update the commit message you are
currently working on. When running commit with git hooks setup the commit may
fail due to a invalid message.

This now splits out the command so you can run `grc` (git recommit) to reedit
the commit message that failed rather then having to enter the message again in
a new commit message.
2021-11-21 15:58:55 +00:00
Ade Attwood
05902b7461 refactor(shell): update gl alias
This will now display the date and author of the commit in the one line log
2021-11-21 11:42:21 +00:00
Ade Attwood
a064375c2b feat(shell): add comby shell aliases
The main reason for this is to automatically exclude common directories form the
search and replace to speed things up a bit.
2021-11-21 11:01:40 +00:00
Ade Attwood
034ae2d143 feat(shell): override "gc" alias to open up the ".git/COMMIT_EDITMSG"
When using tools like commitlint to lint your commits there is always that time
you write an invalid commit. In this situation you are dumped back into the
terminal with an error message and your invalid commit.

This function will now load the invalid commit message back in to the editor so
you can fix the errors and commit successfully.
2021-07-14 14:24:17 +01:00
Ade Attwood
385829ea8b fix(shell): re alias gs to gss
Now the `gs` command has be aliased to a git status alias. The original `gs`
would open up ghost script and I would open it everyday trying to run git
status.
2021-07-10 21:21:24 +01:00
Ade Attwood
e5655ed216 refactor(shell): refactor ggpushmr git alias
ggpushmr has now been renamed to ggpushpr. The only place it is called a "Merge
Request" is in Gitlab. All the community has now decided to go with Github's
"Pull Request".

This also makes the branch param optional. If you don't pass a branch name it
will make the pull request against the repositories default branch.
2021-07-10 21:12:13 +01:00
Ade Attwood
67630dcbbf feat(shell): add dkip alias to the ip address of a container
This alias will inspect a container and pull out the ip address so you can get
to it on the network without having to bind ports.
2021-06-26 20:47:25 +01:00
3c2b34e98f feat(zsh): add "git add -p" alias
Alias "gap" to "git add -p" for patch adding of files
2021-04-30 20:51:09 +01:00
60509de1bf feat(fzf): add command for git check out 2021-04-16 20:49:01 +01:00
7cab7c158d feat(zsh): override command not found to add command not found link
When you run a shell command that is not found this will print out a
link to https://command-not-found.com to give more info on the
command and good docs on how to install the package that the command
came from. This can be built on to do other things like git suggestions
on common commands that are incorrect
2021-04-16 19:53:25 +01:00
0ced8a28b1 refactor(core): update code structure
This is the big re structure to all of the projects. I have decided to
go with the `GOPATH` format so all of the code is in one place and
organised inherently by code host / group / project
2021-03-16 20:22:26 +00:00
755f41bcf8 feat(zsh): add fzf scripts 2020-12-28 21:12:43 +00:00
b7a3aabf49 feat(zsh): add dynamic path support 2020-12-28 21:11:58 +00:00
578d0b5f8b pref(zsh): improve start up time of zsh
Remove unused plugins and override composer plugin there was only one bit that
was really slow when evaluating the bin directory
2020-12-28 09:19:32 +00:00
b35513512b feat(shell): add docker ls -a alias dkls
This lists all container on the system event stopped ones. This is different to
`dkps` that only displays running container. Some times it is helpfully to
display stopped container for getting the id and viewing logs when debugging
crashing containers
2020-10-25 20:12:47 +00:00
80239af169 refactor(core): start to make dotfiles public
This is the first commit that brings the privet dotfiles to a public
reop previously this was all one puppet module. Now this has been split
out so I can put all of the private files in a private puppet module
2020-09-20 06:22:17 +01:00