Skip to content
Snippets Groups Projects
Verified Commit 7447a60d authored by David Beniamine's avatar David Beniamine
Browse files

Configure vim and bash

parent aebeb114
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [ -z "$(grep 'alias ls=' /root/.bashrc)" ]
then
echo 'alias ls="ls -lstrh --color=auto"' >> /root/.bashrc
fi
cat <<EOF > /root/.vimrc
set bg=dark
colorscheme slate
set number
set relativenumber
set showcmd
" Define tabs size
set shiftwidth=4
set tabstop=4
" Replace tab by spaces
set expandtab
set smartindent
set smarttab
" Smartcase
set smartcase
set ignorecase
" Define line size
"set textwidth=78
set textwidth=0
set linebreak
set colorcolumn=80
highlight ColorColumn ctermbg=darkgrey
" Syntax coloration
syntax on
filetype plugin indent on
EOF
......@@ -151,3 +151,5 @@ systemctl restart postfix opendkim
echo "DKIM is now configured, do not forget to add the following DNS entry"
cat mail.txt
cd -
$(dirname $0)/configure_base_tools.sh
......@@ -17,6 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
DIR=`dirname $0`
$DIR/configure_base_tools.sh
. $DIR/main.env
. $DIR/installNextcloud.env
if [ -z "$MODS" ] || [ -z "$MAINTENANCE_LEVEL" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment