Add install / uninstall / documentation for tcsh shell.

pull/307/head
William Ting 10 years ago
parent 349326c82c
commit 567ae121ab

@ -64,7 +64,12 @@ INSTALLATION
### REQUIREMENTS ### REQUIREMENTS
- Python v2.6+ - Python v2.6+
- Bash v4.0+, zsh, fish, or clink (Windows) - Supported shells:
- bash v4.0+
- zsh
- fish
- tcsh (experimental)
- clink on Windows (experimental)
### AUTOMATIC ### AUTOMATIC

@ -3,7 +3,12 @@
### REQUIREMENTS ### REQUIREMENTS
- Python v2.6+ - Python v2.6+
- Bash v4.0+, zsh, fish, or clink (Windows) - Supported shells:
- bash v4.0+
- zsh
- fish
- tcsh (experimental)
- clink (Windows, experimental)
### AUTOMATIC ### AUTOMATIC

@ -10,7 +10,7 @@ import sys
sys.path.append('bin') sys.path.append('bin')
from autojump_argparse import ArgumentParser from autojump_argparse import ArgumentParser
SUPPORTED_SHELLS = ('bash', 'zsh', 'fish') SUPPORTED_SHELLS = ('bash', 'zsh', 'fish', 'tcsh')
def cp(src, dest, dryrun=False): def cp(src, dest, dryrun=False):
@ -157,6 +157,7 @@ def print_post_installation_message(etc_dir, bin_dir):
print('\n\t' + source_msg) print('\n\t' + source_msg)
if get_shell() == 'zsh': if get_shell() == 'zsh':
print("\n\tautoload -U compinit && compinit -u") print("\n\tautoload -U compinit && compinit -u")
print("\nPlease restart terminal(s) before running autojump.\n") print("\nPlease restart terminal(s) before running autojump.\n")

@ -6,7 +6,6 @@ import sys
import mock import mock
import pytest import pytest
# Python 3 compatibility
if sys.version_info[0] == 3: if sys.version_info[0] == 3:
os.getcwdu = os.getcwd os.getcwdu = os.getcwd
sys.path.append(os.path.join(os.getcwd(), 'bin')) sys.path.append(os.path.join(os.getcwd(), 'bin'))

@ -78,6 +78,7 @@ def remove_custom_installation(args, dryrun=False):
rm(os.path.join(etc_dir, 'autojump.sh'), dryrun) rm(os.path.join(etc_dir, 'autojump.sh'), dryrun)
rm(os.path.join(etc_dir, 'autojump.bash'), dryrun) rm(os.path.join(etc_dir, 'autojump.bash'), dryrun)
rm(os.path.join(etc_dir, 'autojump.fish'), dryrun) rm(os.path.join(etc_dir, 'autojump.fish'), dryrun)
rm(os.path.join(etc_dir, 'autojump.tcsh'), dryrun)
rm(os.path.join(etc_dir, 'autojump.zsh'), dryrun) rm(os.path.join(etc_dir, 'autojump.zsh'), dryrun)
rm(os.path.join(zshshare_dir, '_j'), dryrun) rm(os.path.join(zshshare_dir, '_j'), dryrun)
rmdir(icon_dir, dryrun) rmdir(icon_dir, dryrun)
@ -114,6 +115,7 @@ def remove_system_installation(dryrun=False):
rm(os.path.join(etc_dir, 'autojump.sh'), dryrun) rm(os.path.join(etc_dir, 'autojump.sh'), dryrun)
rm(os.path.join(etc_dir, 'autojump.bash'), dryrun) rm(os.path.join(etc_dir, 'autojump.bash'), dryrun)
rm(os.path.join(etc_dir, 'autojump.fish'), dryrun) rm(os.path.join(etc_dir, 'autojump.fish'), dryrun)
rm(os.path.join(etc_dir, 'autojump.tcsh'), dryrun)
rm(os.path.join(etc_dir, 'autojump.zsh'), dryrun) rm(os.path.join(etc_dir, 'autojump.zsh'), dryrun)
rm(os.path.join(zshshare_dir, '_j'), dryrun) rm(os.path.join(zshshare_dir, '_j'), dryrun)
rmdir(icon_dir, dryrun) rmdir(icon_dir, dryrun)

Loading…
Cancel
Save