Commit Graph

86 Commits

Author SHA1 Message Date
b7af03770e zsh:alias: Add TYPE column to lsblk output 2025-06-23 22:07:02 +02:00
6dcf97e249 zsh:alias: Add bytestr 2025-06-23 22:04:27 +02:00
5212f2a217 zsh:alias: Add calculator with output in hex
I never used the old hex alias.
2025-06-05 11:42:04 +02:00
9a91b464a8 zsh:alias: Add HEAD to gla
`gla` is meant to be `glog --all` without stashes. Add the missing
`HEAD` to be accurate, as it is needed when in detached HEAD.
2025-05-23 15:13:24 +02:00
202a0c1437 zsh:alias: Remove mbsync XDG config alias
mbysnc looks for $XDG_CONFIG_HOME/isyncrc
2025-01-30 11:46:11 +01:00
4ec1e81873 feh: Use theme configuration file instead of alias 2024-10-22 19:01:45 +02:00
e85f13def7 zsh:alias:feh: Add --start-at flag
I found this in feh's .desktop file and liked the idea:

With `--start-at` feh will load all files from the directory of the
given file and start the filelist at the given one.

This of course breaks easily if I want to pass more flags before the
file argument, but is easily fixed by first specifying the argument to
`--start-at` and continuing with the rest. I also rarely use any flag
besides the one already defined in the alias.
2024-10-22 18:46:14 +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
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
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
494829fdc4 zsh:alias: Add --tags to almost --all glog
I don't want to see refs/stash, that is why --all does not work for me
2023-07-10 00:10:50 +02:00
ce987f1f94 zsh:alias: Add count for sorted uniq -c 2023-06-21 13:32:54 +02:00
d5436fe0f9 zsh:alias: Add gcow for git-checkout-worktree 2023-06-21 13:31:10 +02:00
0a95d86e25 zsh:alias: Add gpf for git push --force 2023-05-22 00:12:40 +02:00
e81d3005c5 zsh:alias: Manually expand aliases anywhere
When passing a full command as arguments to another (e.g. `sudo`),
aliases are not expanded.

Add the `$` alias that makes it possible to expand a following alias
anywhere. This uses the feature that aliases ending in a space will
trigger alias expansion on the next argument.

See: https://unix.stackexchange.com/a/433849
2023-04-24 11:54:54 +02:00
e8a9f5d828 zsh:alias:TODO: Improve vim/fg wrapper 2023-02-27 14:10:17 +01:00
3b3ec03d01 zsh:alias: Add gca for git commit --amend 2023-01-21 01:58:32 +01:00
f0194794f9 zsh:alias: Add gcl for git commit-last-msg 2023-01-21 01:56:30 +01:00
401fc939ea zsh:alias: Add more possibilities for glog-aliases
It kind of follows a pattern: `a` for `all` (i.e. --branches --remotes)
and `g` for `graph` (but adding another `l` is ok too).
2023-01-20 12:57:40 +01:00
b35ef3603f zsh:alias: Add gla for glog --branches --remotes
Sometimes I want to see other branches but the repository is too big for
`--graph`.

Add `gla` as alias to `glog --branches --remotes` similar to `glll`.

Add `glla` as further alias to `glll` and make the brace expansion more
verbose for better readability.
2023-01-19 03:16:33 +01:00
8c0cd77700 zsh:alisa: Do not show line numbers in less
I rarely need them and can still activate them manually.
2022-11-14 13:03:02 +01:00
7e0dcacc09 zsh:alias: Add gha for git add -p
Similar to the `<leader>gha` ("git hunk add") mapping in my vimrc.
2022-11-11 16:44:48 +01:00
b8d2fc28df zsh:alias: Sort git aliases 2022-11-11 16:44:34 +01:00
6aac7e7848 zsh:alias: Add gco for git checkout 2022-11-08 13:50:54 +01:00
eb160de09b zsh: Remove nvim-man and use neovim as MANPAGER
`:Man` wraps to the window width if `$MANWIDTH` is not set, making
`nvim-man` as man wrapper obsolete.
2022-10-09 19:51:03 +02:00
dc25c88fe7 zsh:alias: Add --full --list-full to pgrep 2022-10-09 19:51:03 +02:00
1d99d5dbf5 zsh:glog: Do not pass --graph by default
`--graph` can get very slow for large repos with many branches. Make
`glog` independent of it and rather add an alias that uses `glog
--graph`.
2022-10-05 17:13:52 +02:00
ec292c0dd1 zsh:alias:vimdiff: Do not set listchars
As this is done by my vimrc already.
2022-09-19 11:55:01 +02:00
d9673498cb zsh:alias: Add -p to mkdir 2022-09-18 19:43:41 +02:00
dc72de809b zsh:alias: Remove mkdir=mkcd
I changed my mind. This gets really annoying.
2022-09-18 19:41:46 +02:00
553a2679cf zsh:alias: Turn tmsu into a smarter function
Instead of simply pointing the database to XDG_DATA_HOME, write a
wrapper function that searches for `.tmsu/db` in all parent directories
and fallbacks to XDG_DATA_HOME if not found.

Also create XDG_DATA_HOME/tmsu if necessary.
2022-09-18 19:37:30 +02:00
22ad215f62 zsh:alias: Add sizes for du -sch * | sort -h 2022-09-09 01:35:58 +02:00
165b0ee7af zsh:alias: Add glog --branches --remotes 2022-08-28 01:12:51 +02:00
7834a6bee2 zsh:alias: Alias mkdir to mkcd 2022-07-14 14:24:58 +02:00
d4ee271740 zsh:alias:qmv: Use destination-only edit format
Use the `destination-only` edit format when renaming files with `qmv`.

`dual-column` mode got on my nerves as I tend to forget with side is
source and which is destination. On top, the `swap` option breaks as
soon as I change the length of a filename.

`single-column` mode is useless for me, as I tend to make changes in
visual block mode.
2022-07-13 12:14:39 +02:00
7b40b3ea98 zsh:alias: Exclude .git & tags when grepping
Those are more or less never a place that I want to include when
grepping recursively or through a glob.
2022-07-12 21:00:10 +02:00
8cd490ea0a zsh: Move 'change directory into repo root' logic
Add an alias that switches directories into the repository root, instead
of having the normal `cd` command behave like that.

Sadly this is not possible (AFAIK) with a git alias as that will always
spawn a subshell.
2022-06-23 23:58:39 +02:00
e97ade48e2 zsh:alias: Add py for python3 2022-06-23 23:58:38 +02:00
6119d8634f zsh:alias: Use single quotes 2022-06-23 23:58:32 +02:00