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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user