1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-04 16:51:31 +01:00
Commit Graph

41 Commits

Author SHA1 Message Date
bretello
8214de3d65
zsh: add watchc function
this allows for watching a process while highlighting its output
with `grc`
2024-06-18 11:31:12 +02:00
bretello
3db7721edb
zsh: functions: cleanup tracing functions 2024-04-06 21:24:45 +02:00
bretello
faf318c3d0
zsh: functions: add alarm function for quick alarms 2024-04-06 21:24:45 +02:00
bretello
1ee73be7f9
zsh: functions: get rid of ppath (use realpath instead) 2024-04-06 21:24:45 +02:00
bretello
b05fde87c2
zsh: simplify retry() 2024-03-01 11:25:12 +01:00
bretello
10c79f1bad
zsh: add watch_file command
uses inotifywait to watch writes on a file and executes a specific
action whenever this is changed (killing the previous process)
2024-03-01 11:25:12 +01:00
bretello
25037bde1f
zsh: cleanup colors/color functions 2024-03-01 11:25:11 +01:00
bretello
58393456a9
zsh: functions: add 'bold' function to print bold text 2023-12-21 16:13:48 +01:00
bretello
a20bffdf67
zsh: python: cleanup mkvenv 2023-11-11 23:33:50 +01:00
bretello
1537ddcc64
zsh: python: add -f flag to mkvenv
- improve mkvenv with getopts option parsing
- add -f flag to force recreation of venv

Usage:
```bash
mkvenv [-sf] [venv_name]
```
2023-11-11 18:54:40 +01:00
bretello
41eb8f1a5f zsh: vimscratch: add filetype arg
Allows setting filetype for vimscratch command.

Usage: `<command> | vimscratch [filetype]`.

For example:

```bash
curl https://myip.wtf/json | vimscratch json
```
Will open the output of the curl command as a json
temporary file in vim.
2023-10-25 11:45:54 +02:00
bretello
58201b2ab7 zsh: cleanup git functions 2023-10-25 11:43:44 +02:00
bretello
4d9462239f zsh: move git fuzzy log to gitconfig (usage: git flog) 2023-10-25 11:43:16 +02:00
bretello
c329308759 zsh: avoid printing command name in completion wrapper 2023-10-25 11:34:36 +02:00
bretello
ee531d18cd functions: remove debug statements in vimscratch 2023-09-25 12:56:09 +02:00
bretello
125a4e7aed functions: allow arguments in vimscratch 2023-09-25 12:39:24 +02:00
bretello
e32676922e
zsh: add tracing module 2023-09-15 00:33:46 +02:00
bretello
b96f0a6f86
zsh: add pacman module 2023-09-15 00:32:28 +02:00
bretello
99baa7f1e0
zsh: automatically enable/disable python virtualenvs on chdir 2023-09-14 23:30:31 +02:00
bretello
39abcd4756
zsh: remove set -x from mangrep() definition 2023-09-14 23:30:30 +02:00
brethil
d1135262de zsh: add fuzzyman command for fuzzy search of man pages (with preview) 2023-09-11 15:46:01 +02:00
bretello
fbc6934f8f
functions: add vimscratch
use `vimscratch` to open a scratch vim buffer.

If run in a pipe, it uses `stdin` as input:

```bash
<command> | vimscratch
```
2023-08-23 13:52:35 +02:00
bretello
9ccf8699ec
zsh: functions: fix upload() 2023-07-10 09:12:50 +02:00
bretello
d72886b6c1
zsh: functions: add watch_file function
this can be used to watch a file for changes and execute the
given action on changes.
2023-07-10 09:12:30 +02:00
bretello
e08ee08768
zsh: functions: avoid using aliases when calling rm/mv 2023-07-08 10:18:04 +02:00
bretello
a8c89d32c9
zsh: functions: add mangrep 2023-01-23 20:21:57 +01:00
bretello
fd05f479d9
zsh: fix git completions for gbD/gbd 2022-12-30 16:01:16 +01:00
bretello
ff696ac5db
functions: fix dotfiles_selfupdate 2022-12-23 13:38:20 +01:00
bretello
72a02e22e0
zsh: git: do not fail when aliases are undefined 2022-08-18 16:37:24 +02:00
karajan1001
b2df319e18 Add four new git function with the help of fzf 2022-08-18 20:56:34 +08:00
bretello
dea326e488
vendored dependency: z (autojump) 2022-08-12 15:55:09 +02:00
bretello
2fb53e6f2b
zsh: functions: cleanup git functions, add git-show-changes 2022-06-21 23:06:21 +02:00
bretello
5f4b4538bb
zsh: functions: mkvenv: replace venv with virtualenv
virtualenv is faster than venv and also installs wheel by default
2022-06-21 23:05:35 +02:00
bretello
f3bf033fb8
zsh functions: add -s flag to mkvenv 2022-05-03 10:16:05 +02:00
bretello
dff98b066f
zsh functions: add python module 2022-04-29 11:16:39 +02:00
bretello
486ee8afbf
zsh: cleanup functions 2022-03-31 19:37:57 +02:00
bretello
0c95eef23a
zsh: extract git functions to git.zsh 2022-03-31 19:27:58 +02:00
bretello
21d9660e64
zsh: improve mkvenv function 2022-03-30 16:05:57 +02:00
bretello
0ed9e5373c
zsh: add asciinema-switch
helps switch different asciinema profiles
2022-03-26 16:43:46 +01:00
bretello
492205e86b
zsh: add mkvenv function 2022-03-26 16:43:36 +01:00
bretello
41b97a1be3
zsh: refactor aliases/functions sourcing 2022-03-26 16:43:36 +01:00