Skip to content

Suggested "function" instead of "alias" #47

@nerun

Description

@nerun

Debian Trixie uses coreutils 9.7, and the patch is for 9.5, so i prefer this way. For anything else use system cp (9.7), when call --progress-bar, use advanced cp (9.5).

cp() {
    if [ "$1" = "-g" ]; then
        shift
        "$HOME/.local/bin/advcp" -g "$@"
    else
        command cp "$@"
    fi
}

mv() {
    if [ "$1" = "-g" ]; then
        shift
        "$HOME/.local/bin/advmv" -g "$@"
    else
        command mv "$@"
    fi
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions