fixed sourcing issues

This commit is contained in:
Thies Lennart Alff 2022-05-11 14:41:32 +02:00
parent f42da73408
commit 9a6e1776b1
2 changed files with 1 additions and 11 deletions

View file

@ -2,7 +2,6 @@
set -e set -e
PX4_DIR="\$HOME/uuv/PX4-Autopilot" PX4_DIR="\$HOME/uuv/PX4-Autopilot"
WORKSPACE_DIR="\$HOME/uuv/ros2" WORKSPACE_DIR="\$HOME/uuv/ros2"
echo "source $WORKSPACE_DIR/install/setup.zsh" >> ~/.zshrc
echo "source $PX4_DIR/Tools/setup_gazebo.bash $PX4_DIR $PX4_DIR/build/px4_sitl_default > /dev/null" >> ~/.zshrc echo "source $PX4_DIR/Tools/setup_gazebo.bash $PX4_DIR $PX4_DIR/build/px4_sitl_default > /dev/null" >> ~/.zshrc
echo "export ROS_PACKAGE_PATH=\$ROS_PACKAGE_PATH:$PX4_DIR" >> ~/.zshrc echo "export ROS_PACKAGE_PATH=\$ROS_PACKAGE_PATH:$PX4_DIR" >> ~/.zshrc
echo "export ROS_PACKAGE_PATH=\$ROS_PACKAGE_PATH:$PX4_DIR/Tools/sitl_gazebo" >> ~/.zshrc echo "export ROS_PACKAGE_PATH=\$ROS_PACKAGE_PATH:$PX4_DIR/Tools/sitl_gazebo" >> ~/.zshrc

11
vimrc
View file

@ -6,7 +6,6 @@ call vundle#begin()
Plugin 'preservim/nerdtree' Plugin 'preservim/nerdtree'
Plugin 'ycm-core/YouCompleteMe' Plugin 'ycm-core/YouCompleteMe'
Plugin 'NLKNguyen/papercolor-theme' Plugin 'NLKNguyen/papercolor-theme'
Plugin 'dense-analysis/ale'
Plugin 'tmsvg/pear-tree' Plugin 'tmsvg/pear-tree'
call vundle#end() call vundle#end()
@ -55,12 +54,4 @@ let g:ycm_confirm_extra_conf=0
autocmd FileType c,cpp nnoremap <leader>f :py3f $HOME/clang-format.py<CR> autocmd FileType c,cpp nnoremap <leader>f :py3f $HOME/clang-format.py<CR>
autocmd FileType c,cpp vnoremap <leader>f :py3f $HOME/clang-format.py<CR> autocmd FileType c,cpp vnoremap <leader>f :py3f $HOME/clang-format.py<CR>
" autocmd FileType python nnoremap <leader><F> :0,$!yapf<CR><C-o> " autocmd FileType python nnoremap <leader><F> :0,$!yapf<CR><C-o>
let g:ale_linters={"python": ["pylint"]} autocmd FileType python nnoremap <leader>f :0,$!yapf<CR><C-o>
let g:ale_fixers = ["yapf"]
let g:ale_open_list=1
let g:ale_set_quickfix=0
let g:ale_set_loclist=1
" does not seem to work due to os.fspath called by config_initialization of
" pylint?
" let g:ale_python_pylint_options='--rcfile $HOME/uuv/ros2/.pylintrc'
silent! autocmd FileType python nnoremap <leader>f :0,$!yapf<CR><C-o>