Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In die .zshrc oder sonstwo wo's gesourced wird:
- function chpwd; {
- DIRECTORY="$PWD"
- while true; do
- if [ -f './.env.rc' ]; then
- source './.env.rc'
- break
- fi
- if [ -f './env' ]; then
- source './env'
- break
- fi
- [ $PWD = '/' ] && break
- cd -q ..
- done
- cd -q "$DIRECTORY"
- }
- In Datei .env.rc oder nur "env" im Root-Verzeichnis des Projekts (als Bsp für ein Perl-Projekt):
- export BASE=$PWD
- export PERL5LIB="$PWD/code/"
- TAG="/usr/bin/ctags"
- $TAG --languages="Perl" -R "$PWD"
- In die .vimrc:
- if exists("$BASE")
- set tags=$BASE/tags
- endif
- map gt :tnext<cr>
- map gT :tprev<cr>
- map <C-p> :pop<cr>
Add Comment
Please, Sign In to add comment