mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Fix tests
This commit is contained in:
parent
c4bfd8e2c6
commit
938144530c
1 changed files with 5 additions and 1 deletions
|
@ -12,7 +12,9 @@ class TerminalSession
|
||||||
zsh_bin: ZSH_BIN
|
zsh_bin: ZSH_BIN
|
||||||
}.merge(opts)
|
}.merge(opts)
|
||||||
|
|
||||||
cmd="PS1=#{opts[:prompt]} TERM=#{opts[:term]} #{ZSH_BIN} -f"
|
@opts = opts
|
||||||
|
|
||||||
|
cmd="PS1=\"#{opts[:prompt]}\" TERM=#{opts[:term]} #{ZSH_BIN} -f"
|
||||||
tmux_command("new-session -d -x #{opts[:width]} -y #{opts[:height]} '#{cmd}'")
|
tmux_command("new-session -d -x #{opts[:width]} -y #{opts[:height]} '#{cmd}'")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -66,6 +68,8 @@ class TerminalSession
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
attr_reader :opts
|
||||||
|
|
||||||
def tmux_socket_name
|
def tmux_socket_name
|
||||||
@tmux_socket_name ||= SecureRandom.hex(6)
|
@tmux_socket_name ||= SecureRandom.hex(6)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue