mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-17 17:35:16 +01:00
Use ▶ prompt
This commit is contained in:
parent
4e737b4b44
commit
33791d8400
1 changed files with 21 additions and 10 deletions
|
@ -1,20 +1,31 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
type() {
|
||||
printf '\e[32m%s\e[m' "λ "
|
||||
echo $1 | pv -qL $[10+(-2 + RANDOM%5)]
|
||||
sleep 0.75
|
||||
PROMPT="▶ "
|
||||
|
||||
enter() {
|
||||
IFS='%'
|
||||
type $PROMPT
|
||||
type $1
|
||||
sleep 0.5
|
||||
type " "
|
||||
sleep 0.25
|
||||
type "\n"
|
||||
eval $1
|
||||
echo ""
|
||||
type "\n"
|
||||
unset IFS
|
||||
}
|
||||
|
||||
type "fd"
|
||||
type() {
|
||||
printf '%b' $1 | pv -qL $[10+(-2 + RANDOM%5)]
|
||||
}
|
||||
|
||||
type "fd mod"
|
||||
enter "fd"
|
||||
|
||||
type "fd sh$"
|
||||
enter "fd mod"
|
||||
|
||||
type "fd -H sample"
|
||||
enter "fd sh"
|
||||
|
||||
type "fd -h"
|
||||
enter "fd -H sample"
|
||||
|
||||
enter "fd -h"
|
Loading…
Reference in a new issue