Commit Graph

281 Commits

Author SHA1 Message Date
62d929127f
readwwwlog: Make sure temporary files are deleted 2022-04-25 21:55:02 +02:00
239e4d293c
readwwwlog: Use id variable everywhere 2022-04-25 15:12:04 +02:00
a2f2c4c6bc
Add support for paste.debian.net to readwwwlog 2022-04-25 15:08:48 +02:00
80933c33f5
readwwwlog: fix text/plain check, only sleep for dpaste 2022-04-25 10:30:30 +02:00
7b35fb38c9
Add support for bpa.st and spunge.us to readwwwlog 2022-04-25 10:24:07 +02:00
23ad6625ba
cat-highlight: Fix error check
It caused cat-highlight to always return with an error status.
2022-04-25 00:16:38 +02:00
d2e68c5c8f
Reorganise highlighter selection in less and cat
- LESSOPEN contains lesspipe{,sh} only
- ~/.lessfilter tries more highlighters
- cat-highlight processes each file independently
- cat-highlight tries to use ~/.lessfilter
2022-04-24 23:53:52 +02:00
d483b23eb1
Zsh-ify PATH and MANPATH 2022-04-24 23:02:02 +02:00
0ceb3c9e73
Zsh prompt: move prompt_cleanup 2022-04-24 22:01:57 +02:00
941e420c2d
Zsh prompt: autoload add-zsh-hook early enough 2022-04-24 19:38:38 +02:00
69c528842a
Move VCS function in prompt 2022-04-24 19:35:03 +02:00
cff0899edb
Fix indentation in prompt_tastytea_help 2022-04-24 19:25:08 +02:00
dfa2822dfd
Add help message for async VCS to prompt 2022-04-24 18:50:21 +02:00
019b2ffed8
Set up vcs_info before enabling the prompt 2022-04-24 18:05:17 +02:00
9f4043a852
Prefix asynchronous VCS worker in prompt theme, add cleanup 2022-04-24 17:53:17 +02:00
ed72ab94d6
Colourise PS{2..4} 2022-04-24 17:14:48 +02:00
070890a95a
Don't unset stuff in prompt theme 2022-04-24 16:24:36 +02:00
08b9289e00
Move some vcs_info options out of prompt theme
Move all vcs_info options that are not styling related to .zshrc
2022-04-24 15:26:04 +02:00
d82a8135de
Convert Zsh prompt into a proper theme
Also make inactive colour a tiny bit brighter.
2022-04-24 15:14:03 +02:00
a5b424073c
readwwwlog: Start at line 1 if pattern is not found 2022-04-23 15:41:24 +02:00
a73f29871c
Fix comment 2022-04-23 11:38:48 +02:00
065122564a
Move username colour in prompt to appropriate place 2022-04-23 11:36:09 +02:00
50f2939827
Remove extra %f in git prompt 2022-04-23 11:30:57 +02:00
1a16e70e08
Zsh prompt: Allow to break shrink-path-loop early 2022-04-22 23:15:16 +02:00
164ea811ce
typo 2022-04-22 23:09:11 +02:00
a170e34344
Zsh prompt: refine shrunken path algorithm
- Allow short elements
- Try to keep last element
  - Shorten mid-section if not possible
2022-04-22 23:05:21 +02:00
2e4cfd99e0
Zsh: Early return in _shrunkpwd() 2022-04-22 08:40:10 +02:00
5e22f6cea1
Zsh: async_vcs_prompt -> _async_vcs_prompt 2022-04-21 23:05:38 +02:00
a2a261ddbe
Zsh: Shrink PWD in RPROMPT dynamically 2022-04-21 23:04:25 +02:00
dbb41dd29e
Add forward-local-port 2022-04-18 20:32:12 +02:00
fe6716c2f0
typo 2022-04-18 20:04:47 +02:00
9202b3e53c
Make netgrep use numeric ports 2022-04-18 20:04:06 +02:00
90701ea228
Make xdgtag completion expand file names
The file name seems to be passed to the completion as an unexpanded
string and setting GLOB_SUBST did expand ~ but filenames with space
didn't work.
2022-04-18 13:54:02 +02:00
73e968aea0
Add openwwwimg 2022-04-18 06:27:56 +02:00
8f017a3211
readwwwlog: Use elif 2022-04-18 05:42:55 +02:00
7903624fcf
readwwwlog: ignore case in error matching pattern 2022-04-18 05:41:35 +02:00
be36c6a182
Add irccloud.com to readwwwlog and urlhandler 2022-04-18 05:39:41 +02:00
b6b7f698f4
Fix colours in sshproxy 2022-04-17 07:12:12 +02:00
ce31dbea7f
Add sshproxy() 2022-04-17 07:00:18 +02:00
0506b66d91
zsh functions: make ret local variable 2022-04-17 06:59:04 +02:00
5c546cc5b8
puttmpninja: Return with error code if curl fails 2022-04-17 06:58:31 +02:00
fd11e94f19
Zsh: use PCRE with =~ 2022-04-17 02:55:01 +02:00
076c72c58e
Add --server option to mxc2http 2022-04-16 15:28:13 +02:00
0256d3d22b
Add support for pastebin URLs in urlhandler/readwwwlog 2022-04-16 13:47:23 +02:00
fc176f28b7
Move matrix_image_url -> mxc2http 2022-04-16 06:38:32 +02:00
87c389eb39
Add matrix_image_url 2022-04-16 06:32:49 +02:00
bfd9efb569
Remove fstag 2022-04-16 04:33:16 +02:00
837077ea39
readwwwlog: Don't open terminal if already in terminal 2022-04-15 14:57:10 +02:00
cf6d630911
Move urlhandler to ~/.local/bin
It will probably never be called from the terminal, so it shouldn't be a
function.
2022-04-15 14:37:35 +02:00
f69d921bcf
Prioritise ~/.local/bin 2022-04-15 14:11:27 +02:00
abd07dbb98
typo 2022-04-15 13:51:01 +02:00
63f2f0920d
Zsh theme: Set unknown-token to default 2022-04-15 13:48:12 +02:00
30150785aa
Add wma and wmv to urlhandler 2022-04-15 13:47:53 +02:00
ae15f1effc
Add mkplaylist 2022-04-15 13:46:20 +02:00
6484bc21e8
Don't break URLs with special characters (like ‘?’) 2022-04-15 10:02:32 +02:00
e8fa980d8e
Break up too long line 2022-04-15 07:30:40 +02:00
35ebd713e5
urlhandler: Allow commands with options 2022-04-15 07:21:59 +02:00
a000b85b90
urlhandler: Add VLC as fallback 2022-04-15 07:04:45 +02:00
ca6a58619c
urlhandler: re-order variables 2022-04-15 07:04:26 +02:00
221f805921
typo 2022-04-15 07:01:34 +02:00
8b8010882b
Set terminal title in readwwwlog 2022-04-15 06:09:36 +02:00
bb8fe8f958
Enhance less command in readwwwlog 2022-04-15 05:42:04 +02:00
0f1a78a9f7
Add suffix to temporary files created by readwwwlog 2022-04-15 05:23:52 +02:00
b73d32a30a
Escape . in regexes in urlhandler 2022-04-15 05:20:19 +02:00
f4ca07c8be
Add urlhandler 2022-04-15 05:14:41 +02:00
1c77fccff6
Add readwwwlog 2022-04-15 05:13:22 +02:00
b0cd0f42af
typo 2022-04-14 04:55:05 +02:00
ef3027a5de
Add colours to puttmpninja 2022-04-14 02:56:11 +02:00
4f3050e401
Add puttmpninja 2022-04-14 01:02:18 +02:00
fb96c52966
Make xdgtag executable 2022-04-14 00:58:10 +02:00
961c9a08d8
Zsh: Add kebinding for editing the current line in the editor 2022-04-13 09:11:23 +02:00
77a4a3325e
Remove --validate-input from highlight
It causes some text to be swallowed
2022-04-12 07:33:14 +02:00
299b9448fc
change audio + video colors in LS_COLORS 2022-04-11 04:50:29 +02:00
75c8fd922d
xdgtag: sort when adding tags 2022-04-10 21:48:54 +02:00
a8688a8978
xdgtag: Delete attribute if empty 2022-04-10 18:55:47 +02:00
210ea9aca3
Replace fstag with xdgtag
xdgtag uses user.xdg.tags, supported by dolphin and other applications.
<https://xdg.freedesktop.narkive.com/f7GQ2EpR/commonextendedattributes-xattr-tags>
2022-04-10 18:23:55 +02:00
25dbe712e1
Fix globbing in fstag() 2022-04-10 09:32:11 +02:00
77865e63a3
Fix completion for fstag 2022-04-10 09:10:00 +02:00
4c94590ddf
Remove line I commented out 2022-04-10 09:03:48 +02:00
a3754ffe3b
Add fstag(), a tool to tag arbitrary files using extended attributes 2022-04-10 08:58:04 +02:00
dd28a51c27
preserve all (including xattrs) with cp 2022-04-10 06:15:21 +02:00
16fcbdd23a
Quote properly in cat-highlight() 2022-04-10 03:58:41 +02:00
08d5e15e18
Add subdir and help options to putwww, add completion 2022-04-10 03:39:55 +02:00
d2d2a166df
Make cat-highlight() work with spaces in filenames 2022-04-10 03:25:50 +02:00
56fd3d07a8
Simplify ssh-sign() a bit 2022-04-10 03:17:44 +02:00
5a4e65a545
_showebuild: return if _gentoo_packages is not found 2022-04-09 22:42:29 +02:00
abf19647c7
Add showebuild function
Show either installed, newest non-live or newest ebuild in less
2022-04-09 22:38:01 +02:00
6ad16cd497
Use highlight colour from theme in die() 2022-04-09 22:00:57 +02:00
0e631eb476
Remove useless autoload from ssh-sign 2022-04-09 21:56:33 +02:00
00fb63e60a
Zsh: Improve completions a bit
<https://thevaluable.dev/zsh-completion-guide-examples/>
2022-04-09 06:41:09 +02:00
c2f45d5661
Improve ssh-sign function
Add -h option, don't require argument
2022-04-08 22:26:12 +02:00
151f91fb24
Add ssh-sign function 2022-04-08 20:11:49 +02:00
3fa947d422
Align minor colour in Zsh prompt with tmux status colour 2022-04-08 04:54:34 +02:00
882232cff2
Zsh: Deprioritise portageq 2022-04-08 00:39:53 +02:00
aa036cb6bf
Zsh: Rename zaliases, zkeys and zsecrets 2022-04-08 00:35:06 +02:00
10e4b0ff86
Zsh: Change Gentoo repo directory aliases a bit
- Check for /etc/gentoo-release instead of calling lsb_release
- Make allrepos command nicer
2022-04-08 00:28:05 +02:00
12256f9137
Zsh: Refactor system package plugin detection 2022-04-06 19:52:58 +02:00
eb4973ae60
Zsh: Return early if _my_plugins is empty 2022-04-06 04:07:06 +02:00
a6baba1e30
Zsh: Use Gentoo packages for more plugins if possible
Add support for zsh-async, fzf-tab and zsh-history-substring-search.
2022-04-05 23:47:18 +02:00
806f31c85d
Zsh: Don't run antibody if we don't need it 2022-04-05 16:34:17 +02:00