zsh:funcs: Create trash wrapper only if exists
This commit is contained in:
@@ -286,14 +286,16 @@ crypt-umount() {
|
|||||||
udisksctl power-off -b "$1"
|
udisksctl power-off -b "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
## List items in trash if no argument is specified
|
if (( $+commands[trash] )); then
|
||||||
trash() {
|
## List items in trash if no argument is specified
|
||||||
|
trash() {
|
||||||
if (( ! $# )); then
|
if (( ! $# )); then
|
||||||
command trash-list
|
command trash-list
|
||||||
else
|
else
|
||||||
command trash "$@"
|
command trash "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
## Move one or more file(s) but keep a symlink to the new location.
|
## Move one or more file(s) but keep a symlink to the new location.
|
||||||
mvln() {
|
mvln() {
|
||||||
|
|||||||
Reference in New Issue
Block a user