Commit Graph

573 Commits

Author SHA1 Message Date
043f3a4faa zsh:alias: Disable globbing for zmv 2021-09-08 13:45:20 +02:00
62a5eca95d zsh:alias: Alias rm to trash 2021-09-08 13:42:27 +02:00
8c7c37d65b zsh:zprofile: Attach to tmux only when it exists 2021-09-08 13:39:10 +02:00
03835c5d8d zsh:zprofile: Attach to tmux when connected by ssh 2021-07-27 15:33:44 +02:00
1c36ae8cac zsh:funcs: Add create_venv 2021-07-27 03:54:10 +02:00
89d8d83410 meta:install: Link .local/share/direnv/ 2021-07-27 01:07:39 +02:00
9c6fac249f meta:install: Allow chsh to have std{in,out,err}
Since potentially it asks for a sudo password.
2021-07-27 00:09:40 +02:00
f2f09be50b zsh:alias: Add coreutils aliases under OSX 2021-07-23 13:06:11 +02:00
acf1f6b691 zsh:alias:add_flags: Keep existing aliases
Instead of overwriting existing aliases, reuse them.
This makes it possible to add multiple flags in multiple calls to
`add_flags` for example when a flag should only be added on certain
systems, etc..
2021-07-23 12:57:03 +02:00
6ba872c9c7 zsh:completion: Remove empty comment 2021-07-23 12:36:55 +02:00
64ca1b72f9 zsh: Move {,un}bkp from aliases to functions
Since both were functions already their place seems more appropriate in
functions.zsh. This also fixes the completion of both, since they did
not complete files before.

Other changes in `unbkp`:
    - Use `mv` instead of `cp`
    - Fix little typo (forgotten quote) and support specifying the
      original name instead of only the backup.
    - Do not "rename" the file if there is no change in name
      (Leading to the prompt if the file should be overwritten)
2021-07-23 12:10:31 +02:00
ca5edbe538 zsh:glog: Remove --all flag
This annoys me in more cases than I thought. For example when checking
out a commit in the past in detached head mode and I want to see the
past commits before the current one.
Especially because there is no flag that can disable it again.

The flag has to be passed manually to `glog` now.
2021-07-23 12:06:58 +02:00
c23613e2d5 git: Disable advice about detached head 2021-07-23 12:05:56 +02:00
03ae2655a8 vim: Rename keybindings.vim to keys.vim 2021-07-22 16:01:09 +02:00
4364625bf5 vim:keys: Add binds to move lines and reindent 2021-07-22 15:59:16 +02:00
77b2d63341 zsh:autosuggestions: Use own fork for now
See https://github.com/zsh-users/zsh-autosuggestions/pull/621

Set experimental values to the new configuration options.
2021-07-22 15:48:36 +02:00
8d4f2c7ce9 zsh:nameddirs: Pull out of aliases into own file 2021-07-22 15:44:14 +02:00
15c0252fda zsh:funcs: Create trash wrapper only if exists 2021-07-22 15:38:14 +02:00
11f7c14fd4 zsh:alias: Add external commands depending block 2021-07-22 15:34:26 +02:00
fc2d811856 zsh:alias: Improve handling of unknown commands
On (new) systems where commands are still missing, it is often a little
surprise when commands do not work after zsh-syntax-highlighting colored
them green. That's why I do not want alias to be created when they just
wrap a command with the same name without the command existing.

There also cases like `rm` where I do not want to type out `command rm`
every time just because `trash` is not installed.
2021-07-22 15:25:46 +02:00
fddbb1117d zsh:alias:clipboard: Check for commands existence 2021-07-22 15:24:32 +02:00
f10896b686 zsh:alias: Add no1 & noO to redirect output 2021-07-22 15:19:44 +02:00
48160456a8 zsh:alias: Remove qrdecode as there is qr() 2021-07-22 14:50:51 +02:00
0b28f89e1d zsh: Reorder zshrc.d that autoload is first
This way the functions are already autoloaded and in alias.zsh and
others can be checked for existence.
2021-07-22 14:24:34 +02:00
5f255769f6 vim:pack: Add Colorizer 2021-07-16 14:52:30 +02:00
b89c170192 vim:keys: Disable indentation jump maps for now
As they clash and are overwritten by the split navigation maps just
below.
2021-07-16 00:53:16 +02:00
b7fb36061b vim:keys: Add Y that acts like C & D 2021-07-16 00:51:26 +02:00
dc27577109 vim:keys: Only need one / for search in visual 2021-07-16 00:50:15 +02:00
a26abe821f vim:keys: Add <leader>/ for :Lines 2021-07-16 00:37:52 +02:00
79be1cfc71 zsh:git-checkout-worktree: Break if dir is deleted
Break the loop if `$REPO_DIR` does not exist anymore because it was
deleted other ways instead of looping forever as `git worktree remove`
fails on non-existing directories.
2021-07-15 16:01:38 +02:00
93ff4e7da2 zsh:glog: Add --all flag
Pretend as if all the refs in refs/, along with HEAD, are listed on the
command line.
2021-07-15 15:58:43 +02:00
938489dd4b zsh: Add git-rebase-add-stash completion 2021-07-15 02:46:16 +02:00
2d65f187f4 zsh: Fix forgotten ZSH_CONF use
`$ZSH_CONF` was removed in af49c39ba3.
2021-07-15 02:44:04 +02:00
111c851055 zsh:funcs: Add git-rebase-add-stash 2021-07-15 01:20:35 +02:00
8890a4b604 zsh:keys: Remove fzf-hist functionality
Go back to a simpler approach, that the `fzf-history-widget` is only
called on <C-Up> and ^K in normal mode and <Up> & <Down> scroll through
the history normally.

The reason behind this change is that there were still some edge cases
in which the widget was wrongfully called when normal scrolling was
intended.
This change also makes it now possible that I can use commands in the
'surrounding' of a past command by first navigating to it with the
fzf-widget and then just using <Up> & <Down>.
2021-07-14 14:35:20 +02:00
b1d396babd *: Use /usr/bin/env in shebangs for bash & zsh
To increase the portability (OSX for example has zsh under `/bin/zsh`).
2021-07-14 13:48:21 +02:00
1fff0c584c vim:xdg: Fix whitespace error in indentation 2021-07-14 12:53:42 +02:00
029aa73759 bin:raw2preview: Do not always exit with code 1
When a preview was generated and `JPGs` exist at the end, `rmdir` would
fail and the script would always exit with that same return code.
2021-07-13 17:04:28 +02:00
4650ebe641 bin:raw2preview: Add support of TIFFs
I know that TIFFs are not strictly speaking raw files. But I don't
bother remaining the script.
2021-07-13 17:01:54 +02:00
8c66e1cf68 vim:autocmd: Add bindings when sourcing termdebug 2021-07-13 16:54:55 +02:00
8c37dc2316 vim:vimrc.d:*: Use " instead of # in header lines 2021-07-13 16:52:42 +02:00
0dfff846c2 zsh:fzf-tab: Remove color preview symbol 2021-07-10 01:47:45 +02:00
e0ade3c140 zsh:fzf-tab: Set bindings for switching groups 2021-07-10 01:46:01 +02:00
9bb4ded6c7 zsh:autoload:gbranch: Do not hardcode AUTOLOAD_DIR 2021-07-10 01:13:40 +02:00
1dec922c0f zsh:autoload: Add gbranch to display git branches 2021-07-10 01:00:09 +02:00
4fedae1a4c zsh:autoload:*: Add shebang & remove vim-modeline
By adding a shebang to the scripts they can be executed directly without
an interactive shell. The shebang also makes vims modeline that only set
the filetype obsolete.
2021-07-10 00:59:25 +02:00
f2c84fe82c vim:zsh-autosuggestions: Set suggestions strategy 2021-07-09 23:53:50 +02:00
ec94e7ebdd git: Set push.default to current
Push current branch to branch of same name.
This is useful for new branches as I almost always push those with:
```
	git push -u origin "$(git branch --show-current)"
```
2021-07-07 12:02:27 +02:00
0480b98812 meta:install: Create GNUPGHOME if nonexistent
This is more of a one-time step to be done when installing, than every
time on login.
2021-07-07 11:56:57 +02:00
4606f9ad80 zsh:git-commit-last-msg(): Support additional args
Pass additional arguments to git-commit so that flags can be passed
e.g `-n` to bypass the commit hooks.
Also use the according completion for `git-commit-last-msg`.
2021-07-07 11:50:52 +02:00