summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zshrc16
1 files changed, 15 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index fded803..7e70c8f 100644
--- a/.zshrc
+++ b/.zshrc
@@ -325,6 +325,8 @@ if [[ -x "$(command -v vimx)" ]]; then
}
fi
+
+
mexec () {
for cmd in "${@[@]}"; do
if ! [ -z "$cmd" ]; then
@@ -342,7 +344,7 @@ mcd () {
}
bgr () {
- nohup $@ 2>&1 &
+ nohup sh -c "$@" 2>&1 &
disown
}
@@ -351,4 +353,16 @@ res () {
bgr $@
}
+dela () {
+ name=$1
+ if [[ ${name:0:1} != "/" ]]; then
+ name="/usr/share/applications/${name}"
+ fi
+ if [[ ! $name =~ .desktop$ ]]; then
+ name+=".desktop"
+ fi
+ comm=($(awk -F= '$1=="Exec"{$1=""; print}' "$name"))
+ bgr "$comm"
+}
+
bindkey '^H' backward-kill-word