Browse Source

Easily open files and directories in Kate.

master
Sorin Ionescu 13 years ago
parent
commit
cf9c37d2b4
  1. 6
      plugins/kate/init.zsh

6
plugins/kate/init.zsh

@ -3,6 +3,10 @@ alias kate='kate >/dev/null 2>&1' # Silent start. @@ -3,6 +3,10 @@ alias kate='kate >/dev/null 2>&1' # Silent start.
# Functions
function kt() {
cd "$1" && kate .
if [[ -z "$1" ]]; then
kate .
else
( [[ -d "$1" ]] && cd "$1" && kate . )
fi
}

Loading…
Cancel
Save