Add startup files for fish, zsh, dash, ksh, sh, csh, tcsh

This commit is contained in:
Shreya 2020-06-20 16:47:08 +05:30
parent 0c60ad16ae
commit e5f92d29b5
1 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,12 @@
BASH_STARTUP_FILES = ["~/.bashrc", "~/.profile", "~/.bash_profile"]
STARTUP_FILES = [
"~/.profile", # bash, dash, ksh, sh
"~/.bashrc", "~/.bash_profile", # bash
"~/.config/fish/config.fish", # fish
"~/.zshrc", "~/.zshenv", "~/.zprofile", # zsh
"~/.kshrc", # ksh
"~/.tcshrc", # tcsh
"~/.cshrc", # csh
]
def get_linux_commands_to_modify_shell_startup_files():
@ -10,4 +18,4 @@ def get_linux_commands_to_modify_shell_startup_files():
'&&',
'sed -i \'$d\' {0}', # remove last line of file
],\
BASH_STARTUP_FILES
STARTUP_FILES