commit a17c3dd080c23435f3b8192fd53f0d73930e3bef
parent db84a2b906b2e6441281e698e649006bcb123bf9
Author: oscarbenedito <oscar@obenedito.org>
Date:   Wed, 27 Nov 2019 00:08:56 +0100

Changes to vimrc and backups fixed

Diffstat:
Mdot_bash_aliases.tmpl.md | 10+++++++---
Mdot_vimrc.md | 6++++++
2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/dot_bash_aliases.tmpl.md b/dot_bash_aliases.tmpl.md @@ -2,8 +2,12 @@ Alias to run Markion everytime we use chezmoi, before actually running chezmoi. ``` file dot_bash_aliases.tmpl chezmoi() { - sh $HOME/.local/share/chezmoi/markion.sh - {{ .chezmoi_location }} $* + if [ $1 = "atom" ]; then + atom /home/$USER/.local/share/chezmoi + else + sh $HOME/.local/share/chezmoi/markion.sh + {{ .chezmoi_location }} $* + fi } ``` @@ -34,7 +38,7 @@ alias vscode="$HOME/KOLMOGOROV/VSCode-linux-x64/bin/code" ## Backups If backup is enabled in the `chezmoi` data, create backup alias, excluding the files specified in the `chezmoi` data. First is the complete backup alias: ``` block backup_all -alias backup_all="rsync -gloptruzvP --delete --no-group --exclude={ +alias backup_all="rsync -loptruzvP --delete --exclude={ {{- range $i, $dir := .backup.backup_exclude }} {{- if $i -}} , diff --git a/dot_vimrc.md b/dot_vimrc.md @@ -47,6 +47,12 @@ Setting the folding method to marker (you should use `{{{` and `}}}` to delimit set foldmethod=marker ``` +Enable line wrapping by work. +```vim file dot_vimrc +set wrap +set linebreak +``` + Set modeline to be able to change defaults in a per file basis. ```vim file dot_vimrc set modeline