shell script of downloading vim plugin for Linux OS
2014-06-10 23:41
537 查看
Below shows the script:
#!/bin/bash log() { printf "[%24s] --- : $1\n" "$(date +"%Y-%m-%d %H:%M:%S.%6N")" } log "install pathogen.vim" test -f ~/.vim/autoload/pathogen.vim || { mkdir -p ~/.vim/autoload ~/.vim/bundle && \ curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim test $? -eq 0 || { log "fail." exit 1 } } log "done" log "install nerdtree.vim" which git >/dev/null || { log "command git is not installed at all." exit 1 } test -d ~/.vim/bundle/nerdtree || { cd ~/.vim/bundle git clone https://github.com/scrooloose/nerdtree.git cd - } log "done"
相关文章推荐
- Shell script for logging cpu and memory usage of a Linux process
- Shell Script for Downloading Songs from BaiduMP3
- Microsoft Windows Shell Script Programming for the Absolute Beginner
- The power of the shell script
- Shell Script For Backup Folder
- gnuplot shell-script for example
- play vim of whats P for p
- AuditLog (log for auditing) released as a plugin of LimpidLog
- statistics script for counting the result of more csv files
- 《Premier.Press.Microsoft.Windows.Shell.Script.Programming.for.the.Absolute.Beginner》
- Shell Script Examples: case, count, for, if, while and User input
- [quote]HowTo Format Date For Display or Use In a Shell Script
- Script of Building ffmpeg for iPhone 4.0 SDK
- use python in vim script of ~/.vimrc
- FreeBSD上Enter full pathname of shell or RETURN for /bin/sh 问题的解决
- How to format date for display or to use in a shell script
- The sample Loadrunner script below shows examples of FOR, DO and DO WHILE LOOPs.
- Eclipse Shell for Plugin
- Novice learning resources for linux shell programming and vim
- Linux Shell Script for mail service