Skip to content

Instantly share code, notes, and snippets.

@istarkov
Last active October 6, 2023 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save istarkov/68075cf400cbd841101bc71b41f557a3 to your computer and use it in GitHub Desktop.
Save istarkov/68075cf400cbd841101bc71b41f557a3 to your computer and use it in GitHub Desktop.
.zshrc pass function
pass() {
local input
read -r input
print -n "\e[1A\e[K"
local var=$(echo $input | sed 'y/[!"№%:,.;йцукенгшщзхъёфывапролджэячсмитьбюЙЦУКЕНГШЩЗХЪЁФЫВАПРОЛДЖЭЯЧСМИТЬБЮ/~!@#$%^&*qwertyuiop[]\\asdfghjkl;\''zxcvbnm,.QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>/')
echo -n "$var"
read -r input
print -n "\e[1A\e[K"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment