1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 04:28:00 +00:00

Easily open files and directories in Kate.

This commit is contained in:
Sorin Ionescu 2011-12-28 11:50:21 -05:00
parent b308a94c91
commit cf9c37d2b4

View File

@ -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
}