Commit Graph

529 Commits

Author SHA1 Message Date
b283587690 vim:plugins: Add vim-syntax-extra
Add vim-syntax-extra for enhanced C syntax highlighting as well as for
bison and flex.
2021-12-27 01:28:00 +01:00
eb74eb274c git:alias:track: Add horizontal line under header 2021-11-18 17:13:50 +01:00
9f65a22df7 git:alias:track: Merge both sed invocations 2021-11-18 04:21:39 +01:00
225a17c437 git:alias:track: Get rid of function definition
The function definition in the spull alias is only needed for the
processing of arguments. In `track`s case it is completely unnecessary.
2021-11-18 04:06:54 +01:00
74a329a7ea git:alias: Add branches as alias for track 2021-11-18 03:39:40 +01:00
081e78562f git:alias:track: Fix strange split header line bug
Fix weird issue that when `column` is used to display the header line,
it is split over two lines sometimes.
```
local
      remote

      origin/HEAD
dev   origin/dev
main  origin/main
      origin/utils
```
2021-11-18 00:57:45 +01:00
227495e7c7 git:alias:track: Separate remotes with newlines 2021-11-18 00:53:56 +01:00
7b5dbd7851 git:alias:track: Name the table columns
Also use `column` to reorder the columns instead of `sed`.
2021-11-17 01:36:21 +01:00
11dab14da3 git:alias:track: Shorten command
Shorten command by always printing a `,` as separator and
differentiating between remote and head refs by a leading slash.
2021-11-17 01:23:33 +01:00
f11be2c1a9 git:alias:track: Fix multiple branch filtering
This fixes the deletion/filtering of branches if there were multiple
local branches tracking the same remote branch.
2021-11-15 18:51:55 +01:00
3297ba81b4 git:alias:track: Also list non-tracked remotes
The alias now lists all local *and* all remote branches and displays how
they are linked.
The `sort -uk1,1` deletes all duplicate entries of remote branches as
they could be listed as %(upstream) as well as %(refname) through the
`refs/remotes/`.
TODO:
     This deletes too many entries when multiple local branches track
     the same remote branch. (Why ever you should do that...)
     I guess this could be resolved by using `awk` for the uniqueness.
2021-11-12 15:56:01 +01:00
1fd2c730d9 git:alias:track: Do not print trailing arrow
Do not print trailing arrow when the local branch is not tracking a
remote branch.
2021-11-12 14:32:01 +01:00
2434f3fc4c git: Add track alias
This command lists all branches and what remote branch they are
tracking.
2021-11-12 14:30:40 +01:00
a3e872556f polybar: Update wlan interface name 2021-11-07 13:57:12 +01:00
ade4486b84 git: Disable addIgnoredFile advice 2021-10-06 21:41:28 +02:00
2ba63dc413 locale: Surpress greps output 2021-10-05 12:01:46 +02:00
a42155a64b vim:keys: Improve bindings to move lines
The old bindings had problems when trying to move further than BOF, EOF.
2021-09-30 10:38:58 +02:00
85b4c48db6 zsh:alias: Add flags to qmv 2021-09-24 01:48:03 +02:00
39de8e4094 vim:keys: Fix & command to also use last flags 2021-09-16 04:41:18 +02:00
2e4955645a git: Never add 'into <branch>' to merge message 2021-09-16 04:33:19 +02:00
48ed69da25 rofi: Left/Right without Shift for next/prev mode 2021-09-14 22:46:57 +02:00
985ff8cd26 vim:keys: Use *, # for visual selection search 2021-09-09 05:23:43 +02:00
80095fe683 rofi: Readd a binding for kb-mode-complete 2021-09-08 14:47:42 +02:00
235d240a81 rofi: Migrate to new theme format
Since needed with/after rofi 1.7.0.
2021-09-08 14:44:06 +02:00
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
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