Easily open files and directories in Kate.
This commit is contained in:
parent
b308a94c91
commit
cf9c37d2b4
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue