mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Allow configuring of zsh binary to run integration tests against
This commit is contained in:
parent
6c5cd42331
commit
2dbd261989
1 changed files with 3 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
||||||
require 'securerandom'
|
require 'securerandom'
|
||||||
|
|
||||||
class TerminalSession
|
class TerminalSession
|
||||||
|
ZSH_BIN = ENV['TEST_ZSH_BIN'] || 'zsh'
|
||||||
|
|
||||||
def initialize(width: 80, height: 24, prompt: '', term: 'xterm-256color')
|
def initialize(width: 80, height: 24, prompt: '', term: 'xterm-256color')
|
||||||
tmux_command("new-session -d -x #{width} -y #{height} 'PS1=#{prompt} TERM=#{term} zsh -f'")
|
tmux_command("new-session -d -x #{width} -y #{height} 'PS1=#{prompt} TERM=#{term} #{ZSH_BIN} -f'")
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_command(command)
|
def run_command(command)
|
||||||
|
|
Loading…
Reference in a new issue