Commit Graph

78 Commits

Author SHA1 Message Date
f3d8ea3de0 less: Move $LESS from .zprofile to lesskey 2025-06-20 15:15:07 +02:00
d0e5d92d2c zprofile: Don't set MBSYNCRC
mbsync reads `$XDG_CONFIG_HOME/isyncrc` now by default.
2025-05-30 14:09:32 +02:00
1f80b616c2 *: Fix some old uses of st as terminal
I replaced st with kitty in 0139294831 ("Use kitty instead of st as
terminal").
2025-05-27 18:25:03 +02:00
b5eb5203aa less: Add --ignore-case to LESS 2025-05-22 01:13:40 +02:00
2842bba50c vim:ftplug:man: Move scrolling settings from zprofile 2025-01-25 03:02:07 +01:00
7bd42b2e2b zprofile: Add CUDA related paths
Normally added by /etc/profile.d/cuda.sh and sourced by /etc/prodile.

TODO: Should I source /etc/profile.d/* from one of /etc/zsh/zprofile and
      $ZDOTDIR/.zprofile?
2024-11-05 22:14:52 +01:00
c674235adf fzf: Faster preview scrolling by mouse wheel
Don't know yet if want this for normal scrolling too.
2024-11-03 17:26:57 +01:00
0cf0bdf82a zprofile: Clear LESS before setting
I just checked on an open shell and noticed that LESS contained what I
meant to put in thrice. Don't know if that has something to do with
tmux, but apparently the zprofile is sourced multiple times? - good to
know.
2024-10-30 10:52:00 +01:00
686a69fedf zprofile: Add Go and Perl related dirs to PATH 2024-10-22 19:15:59 +02:00
92077b75bc zprofile: Set TERMINAL=st
This is used by xdg-open and similar.
2024-10-22 19:15:06 +02:00
e7b287940f zprofile:compat: Use a subshell for fzf_keys
The `${(*)...}` parameter expansion flag was only introduced in
zsh-5.8.1.2-test, but EXTENDED_GLOB is needed for the `(#m)` globbing
flag. To support older zsh versions too, solve this by using a subshell
in which EXTENDED_GLOB is temporarily enabled.
2024-09-27 11:10:27 +02:00
778a3233f5 zprofile: Unset fzf_keys after use 2024-09-27 11:10:26 +02:00
942da616af zprofile: Rename fzf_opts -> fzf_keys 2024-09-27 11:10:26 +02:00
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
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
58243e0510 *: Update and add TODOs 2024-01-05 16:20:42 +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
7909d24251 zprofile: Put zettelkasten notes into docs/notes/ 2023-12-01 03:41:50 +01:00
aa49c9324d fzf: Don't track automatically but add keymap 2023-11-10 14:35:33 +01:00
739e03b5a7 git:glog: Remove by-now default fzf bindings
These were added "globally" to FZF_DEFAULT_OPTS in 4f5d23bd1 ("zprofile:
Add some bindings to FZF_DEFAULT_OPTS").
2023-06-24 11:05:32 +02:00
063b0559c9 fzf: Use fd as default command if installed 2023-06-23 17:08:57 +02:00
0c4dfbf363 git:ignore: Add /.git
Ignore the .git directory globally instead of ignoring it manually in
tools like fd and ripgrep.

I feel very dumb for putting all this time into the redefinition of :Rg,
especially since I am currently **much** procrastinating writing my
bachelor thesis.
2023-06-23 17:03:29 +02:00
4f5d23bd15 zprofile: Add some bindings to FZF_DEFAULT_OPTS 2023-06-23 16:40:23 +02:00
2411a42e32 ripgrep: Add --hidden by default 2023-06-23 14:19:09 +02:00
2114987106 zprofile: Fix non-export of FZF_DEFAULT_NO_RG
I never really noticed but `$FZF_ALT_C_COMMAND` was never set as
`$fzf_default_no_rg` would be empty. Because the variable was not
exported, the X session would not have it in it's environment.
2023-06-23 13:36:23 +02:00
7e4ab97985 zprofile: Add --track to FZF_DEFAULT_OPTS
Leverage fzf's new `--track` flag.
2023-06-07 12:10:23 +02:00
a68599d9ae zsh:zprofile: Add $MBSYNCRC
Additionally to the mbsync alias that was already created, add
`$MBSYNCRC` so that mutt-wizards tools use the correct config as well.
2023-03-31 02:30:01 +02: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
ccea907173 zprofile: Source private variant 2022-09-19 13:39:18 +02:00
181971c1db zsh: Add $fzf_default_no_rg
Move the fallback for $FZF_DEFAULT_COMMAND into the variable
fzf_default_no_rg that is always set.

This way FZF_ALT_C_COMMAND can reuse it instead of spawning a new shell
and messing with PATH.
2022-09-19 13:01:30 +02:00
ed1bfc6ebf zprofile:FZF_DEFAULT_COMMAND: Cut off ./ 2022-09-19 12:57:45 +02:00
bed1ba1840 zprofile: Add -mindepth 1 to FZF_DEFAULT_COMMAND
Do not print `.`.
2022-09-19 12:56:42 +02:00
1dab31ecda zsh:keys: Reuse the default fallback for FZF_ALT_C
Instead of implementing it twice, simulate a shell without ripgrep to
get the fallback of FZF_DEFAULT_COMMAND and modify it for use with
directories.
2022-09-19 12:52:00 +02:00
bc16774f1d zprofile:FZF_DEFAULT_COMMAND: Follow symlinks 2022-09-19 12:36:42 +02:00
0ffd542d0b zprofile: Cleanup comments to FZF_DEFAULT_COMMAND 2022-09-19 12:23:16 +02:00
5cf9aa2905 zprofile: Prune __pycache__ in FZF_DEFAULT_COMMAND 2022-09-19 12:16:31 +02:00
83ae0c1642 zprofile: Refactor FZF_DEFAULT_COMMAND fallback
Group all names that are pruned in parentheses, but remove the unneeded
parentheses around `-type f -print` by removing the `-a`.
2022-09-19 12:05:52 +02:00
ffaef0fd54 *: More XDG environment variables and configs
More configurations of programs that do not follow the XDG Base
directory Standard correctly.
2022-07-12 21:00:11 +02:00
0146956dd4 git:core.pager:,less: Use long flag variants 2022-07-12 20:59:59 +02:00
d5350276dc less: Add --quit-if-one-screen
Before v530 `less` would need the -X flag as well for -F to be useful.
With v530 it does not enter alternate mode if the content fits in one
screen.
2022-07-12 20:59:59 +02:00
1bd7c959e0 zprofile: Fix typo by dropping trailing character 2022-06-23 23:58:30 +02:00
15f4bac670 zprofile: Exit after tmux instead of exec-ing
Instead of exec-ing the tmux process, run it normally and exit
afterwards. Otherwise the zlogout is not read as mentioned a couple of
lines above and in `zsh(1)`:

> However, if the shell terminates due to exec'ing another process, the
> logout files are not read.
2022-06-23 23:56:34 +02:00
3b29820957 zprofile: Use exec when attaching to tmux
When connected over ssh and attaching to/creating a tmux session, the
shell should `exec` the tmux command so that detaching from the session
automatically also closes the ssh connection.

If something should happen and the `tmux` command bricks the remote
shell this can fixed by logging in with:

    ssh [destination] zsh -dfi
2022-06-23 23:55:53 +02:00
0ba0c04c56 zsh: Use $+commands[] instead of command -v 2022-03-31 00:46:46 +02:00