diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-10-20 23:53:04 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-10-20 23:53:04 -0300 |
commit | f2f3e2f7816b0c9e4f54a8bd3bc268d564705f26 (patch) | |
tree | 851764de087d7420269229d0709270faf63d6102 | |
parent | 95b5201c12471f1885240239b23214609fb0e427 (diff) | |
download | profile-f2f3e2f7816b0c9e4f54a8bd3bc268d564705f26.tar.gz profile-f2f3e2f7816b0c9e4f54a8bd3bc268d564705f26.tar.bz2 |
Feat: mkvim command
-rw-r--r-- | profile.dot.link | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/profile.dot.link b/profile.dot.link index 22c577d..b989743 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -131,6 +131,15 @@ export WORKPATH="$HOME/file:$HOME/data:$HOME/code:$HOME/apps:$HOME/apps/dotfiles # See http://www.caliban.org/bash/#bashtips export CDPATH=".:$HOME:$WORKPATH" +# Default editor +#if [ ! -z "$DISPLAY" ]; then +# # Avoid "Avoiding protocol specified" error +# export EDITOR="vim -X" +#else +# export EDITOR="vim" +#fi +export EDITOR="vim" + # Expand workpath #for folder in `echo $WORKPATH | sed -e "s|:| |g" -e "s|~|$HOME|g"`; do # PROJECTS="$PROJECTS`ls -d $folder/*`" @@ -216,14 +225,10 @@ mktouch() { touch "$*" } -# Default editor -#if [ ! -z "$DISPLAY" ]; then -# # Avoid "Avoiding protocol specified" error -# export EDITOR="vim -X" -#else -# export EDITOR="vim" -#fi -export EDITOR="vim" +mkvim() { + mktouch "$*" + $EDITOR "$*" +} # Basic git configuration # See http://stackoverflow.com/questions/4192014/git-ps1-extremely-slow-in-kernel-tree |