diff options
| author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2026-07-22 17:50:53 +0300 |
|---|---|---|
| committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2026-07-22 17:50:53 +0300 |
| commit | 32112c5cbf4bf3a8849e516b49b1f52fff35e0fe (patch) | |
| tree | cde57ed678f5bc61c4eeb3b14958bf6ed8cce8cd | |
| parent | b13cba93a6380ece676e9396b2f9cacb486c4c9c (diff) | |
| download | swayrice-32112c5cbf4bf3a8849e516b49b1f52fff35e0fe.tar.gz swayrice-32112c5cbf4bf3a8849e516b49b1f52fff35e0fe.zip | |
zsh: new shortcuts
| -rw-r--r-- | dotfiles/.config/zsh/shortcuts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dotfiles/.config/zsh/shortcuts b/dotfiles/.config/zsh/shortcuts index 63343ce..77ef9bf 100644 --- a/dotfiles/.config/zsh/shortcuts +++ b/dotfiles/.config/zsh/shortcuts @@ -55,7 +55,7 @@ bindkey '^F' fzf-file-widget bindkey '^A' fzf-cd-widget # Function for changing working dir after exiting lf -lfcd () { +lfcd() { tmp="$(mktemp)" lf -last-dir-path="$tmp" "$@" if [ -f "$tmp" ]; then @@ -86,13 +86,23 @@ alias YT="youtube-viewer" alias starwars="telnet towel.blinkenlights.nl" # git -gitcc () { +gitcc() { git clone "$(wl-paste --no-newline)" } +gitdel() { + git branch -D $2 + git push -d $1 $2 +} + # Audio alias mute="lmc mute" alias vu="lmc up 5" alias vd="lmc down 5" +# Split tunneling with network namespaces +fnetexec() { + sudo -E ip netns exec freenet sudo -E -u \#$(id -u) -g \#$(id -g) "$@"; +} + [ -f "$XDG_CONFIG_HOME/zsh/private" ] && . "$XDG_CONFIG_HOME/zsh/private" |
