Skip to content

Commit

Permalink
BUILD: WORKING COMMIT - DELETE
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperC286 committed Jan 29, 2024
1 parent c53a8ca commit 380a805
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pexpect==4.9.0
ptyprocess==0.7.0
26 changes: 26 additions & 0 deletions test/temp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import pexpect
import os

# start a child process with spawn
# It just echos geeksforgeeks
child = pexpect.spawnu('/usr/bin/env zsh --no-rcs',
env=os.environ | {'PROMPT': '>'})

child.expect('>')
print("1 ------------")
print(child.before)
print("2 ------------")
print(child.after)


child.sendline(
"source /home/callum/Git/Public/zsh-simple-abbreviations/test/zshrc")

# child.expect('>')
# child.sendline('zsh-simple-abbreviations --set HS "Hello World!"')

child.expect('>')
print("3 ------------")
print(child.before)
print("4 ------------")
print(child.after)
7 changes: 7 additions & 0 deletions test/zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# History.
HISTFILE="/tmp/.zsh_history"

# Source extra zsh plugins.
source "${HOME}/.oh-my-minimal/zsh-simple-abbreviations/zsh-simple-abbreviations.zsh"

PROMPT=$'> '

0 comments on commit 380a805

Please sign in to comment.