Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
}
Comment

PREVIOUS NEXT
Code Example
Shell :: wsl2 icmp_seq=165 Destination Host Unreachable after installing docker 
Shell :: -d flag linux if 
Shell :: posix function on defined in php 
Shell :: descobrir se porta esta aberta terminal linux telnet 
Shell :: what is %prec in yacc 
Shell :: get OS name from lsb-release 
Shell :: centos remote desktop 
Shell :: fsck fat32 partition 
Shell :: ignoring time stamp from the future mac 
Shell :: como agregar angular material al proyecto 
Shell :: como instalar ext-mbstring en ubuntu 18.04 
Shell :: mac cleanup github 
Shell :: how to get rid of the start up screen on your pyinstaller .exe file 
Shell :: how to ushow to add hadolint as a pre-commit hook 
Shell :: ubuntu record video change time 
Shell :: uxmovemen 
Shell :: flatpak list themes 
Shell :: craftbukkit 
Shell :: run c64 in docker 
Shell :: ubuntu screen record stopped itself 
Shell :: how to upload a file to sentry 
Shell :: virtiual Machine setup for QEMU in linux 
Shell :: AppRegistryNotReady notebook django shell 
Shell :: docker run -e 
Shell :: Exception: No Linux desktop project configured. See 
Shell :: upload file to remote linux 
Shell :: Create subdomain | Nginx | Fish Shell 
Shell :: run same command in different hosts 
Shell :: debian buster install twemproxy 
Shell :: obs ubuntu noise reduction 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =