Skip to content

u/TheRandomNinja

In this archive from Dec 2015 to Aug 2021

0
posts
13
comments
0
media
71
score

Top comments

Yes, you can do this with a pacman hook! Here a bit of a template for you:

# /etc/pacman.d/hooks/<file>.hook
[Trigger]
Operation = Upgrade
Type = Package
Target = <R package name>

[Action]
Description = <description>
# Depends is optional if this should depend on another package
Depends = 
When = PostTransaction
Exec = <command or script>

Just write this to some file <file>.hook in the /etc/pacman.d/hooks/ directory replacing the bits inside the angle brackets with what you want to happen. The description bit will be the message pacman prints when the hook runs.

26 points

Yes, I also use zsh in vi mode and have experienced the same issue. I fixed mine using bindkey with the following lines:

# fix keys home
bindkey -M viins "^[[H" beginning-of-line
bindkey -M vicmd "^[[H" beginning-of-line

# fix keys end
bindkey -M viins "^[[F" end-of-line
bindkey -M vicmd "^[[F" end-of-line

# fix keys insert
bindkey -M viins "^[[2~" overwrite-mode
bindkey -M vicmd "^[[2~" overwrite-mode

# fix keys delete
bindkey -M viins "^[[3~" delete-char
bindkey -M vicmd "^[[3~" delete-char

# fix keys pgup
bindkey -M viins "^[[5~" up-history
bindkey -M vicmd "^[[5~" up-history

# fix keys pgdown
bindkey -M viins "^[[6~" down-history
bindkey -M vicmd "^[[6~" down-history
7 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.