fix winscp script
This commit is contained in:
parent
83e6d92502
commit
d9ac5a422b
@ -3,20 +3,20 @@
|
|||||||
zsh -i -c 'zinit update'
|
zsh -i -c 'zinit update'
|
||||||
vim +PlugInstall +qall
|
vim +PlugInstall +qall
|
||||||
|
|
||||||
{{ if and (eq .chezmoi.os "linux") (not (stat (print .chezmoi.homeDir "/.winscp"))) -}}
|
{{ if and (eq .chezmoi.os "linux") (not (stat (print .chezmoi.homeDir "/.winscp"))) }}
|
||||||
{{ if or (eq .chezmoi.osRelease.id "manjaro") (eq .chezmoi.osRelease.id "arch") -}}
|
{{ if or (eq .chezmoi.osRelease.id "manjaro") (eq .chezmoi.osRelease.id "arch") }}
|
||||||
mkdir -p ~/.winscp
|
mkdir -p ~/.winscp
|
||||||
mkdir -p ~/.winscp/drive_c/users/{{ .chezmoi.username }}/.ssh
|
mkdir -p ~/.winscp/drive_c/users/{{ .chezmoi.username }}/.ssh
|
||||||
{{ if and (stat (print .chezmoi.homeDir "/.ssh/config")) (not (stat (print .chezmoi.homeDir "/.winscp/drive_c/users/" .chezmoi.username "/.ssh/config"))) -}}
|
{{ if and (stat (print .chezmoi.homeDir "/.ssh/config")) (not (stat (print .chezmoi.homeDir "/.winscp/drive_c/users/" .chezmoi.username "/.ssh/config"))) }}
|
||||||
ln -s ~/.ssh/config ~/.winscp/drive_c/users/{{ .chezmoi.username }}/.ssh/config
|
ln -s ~/.ssh/config ~/.winscp/drive_c/users/{{ .chezmoi.username }}/.ssh/config
|
||||||
{{ end -}}
|
{{ end }}
|
||||||
{{ if and (stat (print .chezmoi.homeDir "/.ssh/known_hosts")) (not (stat (print .chezmoi.homeDir "/.winscp/drive_c/users/" .chezmoi.username "/.ssh/known_hosts"))) -}}
|
{{ if and (stat (print .chezmoi.homeDir "/.ssh/known_hosts")) (not (stat (print .chezmoi.homeDir "/.winscp/drive_c/users/" .chezmoi.username "/.ssh/known_hosts"))) }}
|
||||||
ln -s ~/.ssh/known_hosts ~/.winscp/drive_c/users/{{ .chezmoi.username }}/.ssh/known_hosts
|
ln -s ~/.ssh/known_hosts ~/.winscp/drive_c/users/{{ .chezmoi.username }}/.ssh/known_hosts
|
||||||
{{ end -}}
|
{{ end }}
|
||||||
{{ if and (stat (print .chezmoi.homeDir "/.config/filezilla/sitemanager.xml")) (not (stat (print .chezmoi.homeDir "/.winscp/drive_c/users/" .chezmoi.username "/AppData/Roaming/FileZilla/sitemanager.xml"))) -}}
|
{{ if and (stat (print .chezmoi.homeDir "/.config/filezilla/sitemanager.xml")) (not (stat (print .chezmoi.homeDir "/.winscp/drive_c/users/" .chezmoi.username "/AppData/Roaming/FileZilla/sitemanager.xml"))) }}
|
||||||
mkdir -p ~/.winscp/drive_c/users/{{ .chezmoi.username }}/AppData/Roaming/FileZilla
|
mkdir -p ~/.winscp/drive_c/users/{{ .chezmoi.username }}/AppData/Roaming/FileZilla
|
||||||
ln -s ~/.config/filezilla/sitemanager.xml ~/.winscp/drive_c/users/{{ .chezmoi.username }}/AppData/Roaming/FileZilla/sitemanager.xml
|
ln -s ~/.config/filezilla/sitemanager.xml ~/.winscp/drive_c/users/{{ .chezmoi.username }}/AppData/Roaming/FileZilla/sitemanager.xml
|
||||||
{{ end -}}
|
{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end }}
|
||||||
{{ end -}}
|
{{ end }}
|
Loading…
x
Reference in New Issue
Block a user