b5bfb81931
fzf: Keep the current line selected when clearing
2024-09-21 01:26:27 +02:00
3c4f483a2c
fzf: Add --highlight-line to DEFAULT_OPTS
...
Similar to vim's 'cursorline'
2024-09-21 01:16:00 +02:00
442a1c1bdc
zsh:keys: Make ^E work in vicmd too
2024-09-21 01:06:32 +02:00
35422b6fc4
fzf: Use bfs for ALT_C_COMMAND if available
2024-09-21 01:04:44 +02:00
5552af5076
fzf: Suppress errors in FZF_DEFAULT_COMMAND
2024-09-21 01:02:08 +02:00
0b9d5a4815
zprofile: Add npm/bin to PATH
2024-09-21 01:01:18 +02:00
04fb10687f
zprofile: Set XDG_STATE_HOME
2024-09-21 01:01:04 +02:00
9d756c2748
zsh:alias: Add duration that formats seconds
2024-09-20 16:29:51 +02:00
ae626e9e90
zsh:alias: Change gr alias to git reset
...
I had multiple occasions where I thought that `gr` would resolve to git
reset. I should switch to using `gri` for a rebase.
2024-07-25 11:52:18 +02:00
ec4bb20625
zsh:alias: Add TODO note to fragile rm condition
2024-05-12 21:00:12 +02:00
f000b53882
zsh:alias: Only add flags to rm, not aliased trash
2024-05-12 20:57:04 +02:00
46da4a617d
zsh:alias: Disable CORRECT_ALL for mkdir
...
It's really annoying if it tries to correct me when I create a new
directory that is named similar to an existing one.
Group together aliases that add a precommand modifier.
Since `mkdir` receives the `-p` flag already via `add_flags` the `md`
alias can directly alias to `mkdir` instead.
2024-05-10 13:22:45 +02:00
6b25a2ce4e
zsh:alias: Move add_flags section to the bottom
...
This way the commands can get aliased in other ways first and then get
their flags added.
2024-05-10 13:17:05 +02:00
19e3fbe7a0
zsh:alias: Update undescriptive comment
2024-04-26 14:05:33 +02:00
2aece4b672
zsh:alias: Add lsd to list all directories
2024-04-26 14:05:29 +02:00
31fcce9491
glog: Put angle brackets around email addresses
...
This makes it easier to copy the line and directly use it in git
trailers (e.g. Reviewed-by).
2024-04-25 11:40:26 +02:00
6dd226d305
zsh:diffcmds: Quote only once, for real now
2024-03-24 18:27:41 +01:00
e5593e1c98
zsh:diffcmds: Refactor: make code less redundant
...
Instead of always operating on `$@` and using complex parameter
substitutions, split `$@` once into two arrays and use those for
everything further.
2024-03-24 18:27:37 +01:00
52e5d1ab4d
zsh:diffcmds: Do the quotation only once
2024-03-24 18:16:02 +01:00
09f437a860
zsh:diffcmds: Do not unquote pipes in args list
...
diffcmds echo foo %% cat -- '|'
is expected to output `foo | cat` and not `foo`.
Fix this by changing the order of the substitution and {,un}quoting.
2024-03-24 17:38:16 +01:00
ee31064286
zsh:diffcmds: Improve comments and example
2024-03-24 17:29:18 +01:00
ffc9877a70
git:last-changed: Print committer name too
...
I am still unsure if I want the author or committer name. For the date I
think it makes sense to have the committer date since it reflects better
when the branch last changed.
2024-03-24 13:50:12 +01:00
234f452434
git:make-fork: Add call to git-https-and-ssh
...
When setting up the remotes the fetch url can use https since the fork
will be public anyways. This delays a prompt for the ssh key until it is
really necessary.
2024-03-24 13:46:42 +01:00
803b35d3d5
zsh:p10k: Empty the second line of RPROMPT
...
I often get annoyed when I try to copy the command I typed but the
timestamp is also copied (e.g. with tmux line selection). Move the time
segment to the very right of the first line of RPROMPT which empties the
second line completely.
2024-03-22 10:09:16 +01:00
ed9ed6fd28
zsh:alias: Remove :q -> exit alias
...
I stopped using it in favor of Ctrl-D and see the downside that I might
close a shell by accident.
2024-03-18 12:05:39 +01:00
7611f37f25
zsh:alias: Add --no-merges to gl
...
In the flat/non-graph view merge commits are a bit distracting. Still
unsure if I will forget about this and one day wonder why I don't see
merge commits.
2024-02-19 16:02:03 +01:00
11f5a60039
zsh:alias: Pipe --help output into less
2024-01-25 17:45:46 +01:00
700c661e04
git:alias: Add clm for commit-last-msg
2024-01-25 17:45:00 +01:00
47cad5c079
zsh:p10k: Update to latest master
2024-01-15 15:15:23 +01:00
356f9ecd8b
zsh:p10k: Remove VCS branch icon
2024-01-15 15:11:43 +01:00
99c247e937
zsh:p10k: Remove ok & err from pipe exit indicator
...
Also change the color of a failed command in a successful pipe to
orange.
2024-01-15 15:08:49 +01:00
92cc28c480
zsh:finddup(): Replace awk solution with uniq
...
Replace custom awk solution with uniq, by first flipping filename and
filesize so that uniq's `-f` flag can be utilized (as there is no
inverse of it, i.e. "only look at field n").
This increases performance by quite a bit.
2024-01-05 17:17:56 +01:00
30ef936fbd
zsh:mvln(): Actually use $flags variable
...
Fix 5359298bed ("zsh:mvln(): Implement relative flag `-r`"), that
forgot to actually use $flags after adding it.
2024-01-05 16:27:23 +01:00
c9938374c2
zsh:alias:gpf: Add --force-if-includes
...
Make force push a bit safer.
2024-01-05 16:24:03 +01:00
be2205de32
zsh:alias:feh: Auto scale down and use grey bg
2024-01-05 16:22:30 +01:00
58243e0510
*: Update and add TODOs
2024-01-05 16:20:42 +01:00
5747b6e04c
git:commit-last-msg: Make more robust
...
Use core.commentchar to identify commented lines and use the cut line
instead of just deleting from the first comment on, as this would break
for example in git generated messages (e.g. squashes).
2024-01-05 16:10:55 +01:00
3796e867d2
fzf: Add --no-require-git to FZF_DEFAULT_COMMAND
...
This way fd and rg utilize the gitignore when called from a non-git
parent directory too.
2024-01-05 15:31:04 +01:00
21668c657d
zprofile: Add --hidden to rg version of FZF_CMD
...
Even though it is added already through .config/ripgrep/config, to make
it more consistent with the fd version.
2024-01-05 15:29:15 +01:00
0c049d235a
fzf: Ignore venv and build dirs in default command
2024-01-05 15:16:16 +01:00
cc076cc205
zsh:opts: Revert disabling CDABLE_VARS
...
This reverts commit a205a7c5ce ("zsh:opts: Disable CDABLE_VARS").
The main reason why the option annoyed me was primarily because I had
stupid named dirs to begin with. Remove children of HOME, since I get
there fast anyways.
2023-12-04 20:47:39 +01:00
a0d79583f2
zsh:opts: Disable HIST_VERIFY
...
Most of the I am sure about it, and if not, I press Tab.
2023-12-04 20:43:01 +01:00
7909d24251
zprofile: Put zettelkasten notes into docs/notes/
2023-12-01 03:41:50 +01:00
5359298bed
zsh:mvln(): Implement relative flag -r
2023-11-30 18:44:15 +01:00
0213ad8f7d
zsh:nameddirs: Add ws & ss for WiSe & SoSe
2023-11-24 13:34:09 +01:00
99701cf1a5
zsh:nameddirs: Change semester naming scheme
2023-11-24 13:27:54 +01:00
97f00e1dd0
zsh:keys: Bind Ctrl-Shift-G to insert-shcwd
2023-11-20 19:38:13 +01:00
93467176f6
zsh:keys: Set sensible fzf args for go-shcwd
...
Copy arguments from shell/key-bindings.zsh of the fzf repo.
2023-11-20 19:27:17 +01:00
aa49c9324d
fzf: Don't track automatically but add keymap
2023-11-10 14:35:33 +01:00
50eecf7e01
git:perm-stash: Use stash's ancestor as commit_ref
...
The stash does not necessarily apply to HEAD.
2023-07-18 14:33:55 +02:00