Closed kalsan closed 5 years ago
Hi! You could temporarily add the command 'exit' to the file '/home/user/.fizshrc' (like 'echo exit >> /home/user/.fizsh/.fizshrc'). After that you could starts an interactive session by issuing the command 'fizsh'. This will populate the '/home/user/.fizsh' directories. Due to the 'exit' command in the file '/home/user/.fizsh/.fizshrc' the interactive session will be terminated immediately. After that you should restore the original state of '/home/user/.fizshrc', which might be achieved by 'head -n -1 /home/user/.fizsh/.fizshrc > /home/user/.fizsh/.fizshrc'.
Works like a charm. Thanks a lot!
Hi! I'm looking for a way to install fizsh from ansible. For this, I need a way to run fizsh from a script such that it creates the
.fizsh
directory with all contents.How can this be achieved?