mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 10:18:00 +00:00
Easily open files and directories in Kate.
This commit is contained in:
parent
b308a94c91
commit
cf9c37d2b4
@ -3,6 +3,10 @@ alias kate='kate >/dev/null 2>&1' # Silent start.
|
|||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
function kt() {
|
function kt() {
|
||||||
cd "$1" && kate .
|
if [[ -z "$1" ]]; then
|
||||||
|
kate .
|
||||||
|
else
|
||||||
|
( [[ -d "$1" ]] && cd "$1" && kate . )
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user