Skip to content

Commit

Permalink
add sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfire1900 committed Mar 27, 2024
1 parent 46b5adf commit 675c2b0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sample_async.xsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
count = 0

def prompt():
global count
_count = count
count = count + 1
return '{SLOWBLINK_PURPLE}str(_count) + ' $ {RESET}'

$PROMPT = prompt

$UPDATE_PROMPT_ON_KEYPRESS = True
$PROMPT_REFRESH_INTERVAL = 1



from xontrib import prompt_vi_mode
def prompt():
return prompt_vi_mode.vi_mode() + ' $ '


$PROMPT = prompt

0 comments on commit 675c2b0

Please sign in to comment.