Commit graph

18 commits

Author SHA1 Message Date
bfa78813c9 zsh: add mkcd() 2023-07-15 00:32:24 +02:00
6cabb10b31 zsh: don't cause errors if tput is not available 2023-03-05 01:09:51 +01:00
ebda8d4fa2 zsh: factor out checking for command availability 2023-03-05 01:09:51 +01:00
70bf3b3118 zsh: minor refactors 2023-03-05 01:09:51 +01:00
e46a370e2e zsh: move environment setup to .zprofile 2023-03-05 01:09:51 +01:00
f131f81c51 install: remove stow dependency and reorganize repo 2023-02-28 22:39:51 +01:00
2e95a30cd9 zsh: remove aliases I never use 2023-02-26 18:11:51 +01:00
051f7f876a zsh: fix typo (missing =) in lt alias 2023-01-28 18:56:54 +01:00
406b092b03 zsh: use long option names in aliases where possible
Makes sense to use long option names when I am not doing the typing, as
they are more descriptive than most single letters.
2023-01-26 22:17:47 +01:00
2a16007dfa zsh: remove listing of git status with exa
The git status information makes `exa` choke a bit in very large
repositories, which I have been navigating a lot lately.
2023-01-26 22:08:54 +01:00
3bd5c8251b zsh: add tlt alias for limiting tree level 2023-01-25 16:20:40 +01:00
666fdf9134 zsh: use Homebrew's make if available 2023-01-22 00:36:54 +01:00
fd9708e5ea zsh: alias vi to nvim 2023-01-22 00:36:36 +01:00
f899112ec0 zsh: add GNU tar to PATH if available on macOS 2022-11-19 12:08:16 +01:00
fb1b6a3bda zsh: fix changing cursor shape in tmux + iTerm2
Most terminals use the VT520 DECSCUSR escape sequences for setting the
cursor shape, documented at:

    https://invisible-island.net/xterm/ctlseqs/ctlseqs.txt

iTerm2, however, uses a set of proprietary escape codes, documented at:

    https://iterm2.com/documentation-escape-codes.html

The issue I had was that tmux recognizes the VT520 DECSCUSR codes and
knows how to translate them itself to iTerm2. But tmux does not accept
the iTerm2 codes as input, so deciding to use these proprietary codes
only based on the presence of `$ITERM_SESSION_ID` did not work when
running tmux. The solution is to revert to the VT520 codes when running
inside of tmux (even inside iTerm2) and let it translate to iTerm2.
2022-11-18 20:34:32 +01:00
37f14fc23a zsh: make `~/.zshenv' as small as possible
`~/.zshenv' is executed for _every_ instance of `zsh', so we should
limit the work done there to the absolute minimum. For me, that
currently means only making sure `$ZDOTDIR' is set so that login (via
`.zprofile') and interactive (via `.zshrc') shells can be configured
appropriately.
2022-10-21 20:16:10 +02:00
39f51775fe zsh: refactor configuration with focus on interactive shells
Moved most of the work to `.zshrc' rather than `.zhenv', because most of
my configuration is only relevant to my interactive use of the shell.
2022-10-21 19:59:16 +02:00
61f0b64b84 install: make ~/.config a symlink into dotfiles 2022-02-07 19:26:29 +01:00