I almost always want to do vim +"setl buftype=nofile" - when vimming stdin. So I made an alias, vim-
David Blume

David Blume commited on 2020-03-04 12:41:02
Showing 1 changed files, with 8 additions and 0 deletions.

... ...
@@ -51,6 +51,7 @@ export CSCOPE_EDITOR=vim
51 51
 alias grep='grep --color=auto'
52 52
 alias fgrep='fgrep --color=auto'
53 53
 alias egrep='egrep --color=auto'
54
+alias vim-='vim +"setl buftype=nofile" -'
54 55
 
55 56
 # colored GCC warnings and errors
56 57
 export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
... ...
@@ -86,9 +87,16 @@ md() {
86 87
     fi
87 88
 }
88 89
 
90
+concept() {
91
+    apropos -s 7 . | awk '!/iso|latin/ {print $1}' | shuf -n 1 | xargs man 7
92
+}
93
+
89 94
 # https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
90 95
 HISTCONTROL=ignoredups:erasedups
91 96
 HISTIGNORE="&:ls:[bf]g:exit:pwd:clear"
97
+#HISTFILESIZE=2000
98
+#HISTSIZE=2000
99
+# [ $(wc -l < $HOME/.bash_history) -gt 950 ] && echo "David, your .bash_history is over 950 lines. Consider updating your .bashrc."
92 100
 shopt -s histappend
93 101
 
94 102
 if [ -f $HOME/.localrc ]; then
95 103