#585: Add note about reloading changes in how to configure message

This commit is contained in:
Vladimir Iakovlev
2017-01-15 14:03:09 +01:00
parent 3a9942061d
commit 8447b5caa2
6 changed files with 31 additions and 10 deletions
+6 -1
View File
@@ -44,4 +44,9 @@ class Bash(Generic):
config = '~/.bashrc'
else:
config = 'bash config'
return 'eval $(thefuck --alias)', config
return {
'content': 'eval $(thefuck --alias)',
'path': config,
'reload': u'source {}'.format(config),
}
+5 -2
View File
@@ -67,8 +67,11 @@ class Fish(Generic):
return u'; and '.join(commands)
def how_to_configure(self):
return (r"eval (thefuck --alias | tr '\n' ';')",
'~/.config/fish/config.fish')
return {
'content': r"eval (thefuck --alias | tr '\n' ';')",
'path': '~/.config/fish/config.fish',
'reload': 'fish',
}
def put_to_history(self, command):
try:
+5 -1
View File
@@ -15,4 +15,8 @@ class Powershell(Generic):
return u' -and '.join('({0})'.format(c) for c in commands)
def how_to_configure(self):
return 'iex "thefuck --alias"', '$profile'
return {
'content': 'iex "thefuck --alias"',
'path': '$profile',
'reload': '& $profile',
}
+5 -1
View File
@@ -31,4 +31,8 @@ class Tcsh(Generic):
return u'#+{}\n{}\n'.format(int(time()), command_script)
def how_to_configure(self):
return 'eval `thefuck --alias`', '~/.tcshrc'
return {
'content': 'eval `thefuck --alias`',
'path': '~/.tcshrc',
'reload': 'tcsh',
}
+5 -1
View File
@@ -45,4 +45,8 @@ class Zsh(Generic):
return ''
def how_to_configure(self):
return 'eval $(thefuck --alias)', '~/.zshrc'
return {
'content': 'eval $(thefuck --alias)',
'path': '~/.zshrc',
'reload': 'source ~/.zshrc',
}