1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-05 17:37:03 +00:00

aliases: Implement aliases hooks

This patch implements two new hooks: alias-resolve and alias-exists.

They are called during the aliases resolution process, to allow for more
complex integration with other systems, such as storing the aliases in a
database.

See the included documentation for more details.
This commit is contained in:
Alberto Bertogli
2019-10-22 22:05:09 +01:00
parent dea6f73164
commit f399fe3e84
8 changed files with 253 additions and 36 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
case "$1" in
"vicuña@testserver")
exit 0
;;
"ñandú@testserver")
exit 0
;;
"roto@testserver")
exit 0
;;
esac
exit 1