aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/zsh/shortcuts14
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"