Horje
pattern matching alias linux Code Example
pattern matching alias linux
command_not_found_handle() {
  local cmd_str

  # change the argument-list array back to a string
  printf -v cmd_str '%q ' "$@"

  # process that string:
  case $cmd_str in
    "git@"*".git") eval "git clone $cmd_str" ;;
    *) echo "No alternative for command found" >&2; return 1 ;;
  esac
}




Shell

Related
instalar conky manager ubuntu 18.04 Code Example instalar conky manager ubuntu 18.04 Code Example
reset resolv.conf Code Example reset resolv.conf Code Example
bash numbering even filename Code Example bash numbering even filename Code Example
git issues Code Example git issues Code Example
rclone conf location on windows Code Example rclone conf location on windows Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9