mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-01-02 02:03:39 +08:00
Allow configuring of zsh binary to run integration tests against
This commit is contained in:
parent
6c5cd42331
commit
2dbd261989
|
@ -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 New Issue
Block a user