chore: ZSH MacOS
This commit is contained in:
21
.config/zsh/qol.zsh
Normal file
21
.config/zsh/qol.zsh
Normal file
@@ -0,0 +1,21 @@
|
||||
# ~/.config/zsh/qol.zsh
|
||||
|
||||
bindkey '^H' backward-kill-path-component
|
||||
bindkey '^[[3;5~' kill-word
|
||||
|
||||
backup() {
|
||||
cp $1 $1.bak
|
||||
}
|
||||
|
||||
restore() {
|
||||
mv $1 $(echo $1 | sed 's/\.bak//')
|
||||
}
|
||||
|
||||
capture() {
|
||||
sudo dtrace -p "$1" -qn '
|
||||
syscall::write*:entry
|
||||
/pid == $target && arg0 == 1/ {
|
||||
printf("%s", copyinstr(arg1, arg2));
|
||||
}
|
||||
'
|
||||
}
|
||||
Reference in New Issue
Block a user