- Generate database file:
# combine multiple files into one
cat computer vimtips > quotes
# create random access file
strfile quotes quotes.dat| #!/bin/bash | |
| #@brief: shorten ~/.bash_history by removing repeated entries from top to bottom (keep last) | |
| #this additionaly cleanup because below setting not work properly | |
| #HISTCONTROL=ignoreboth:erasedups #ignoreboth(^space and consecutive duplicates), remove duplicates | |
| #@note: this script not work with HISTTIMEFORMAT enable (command with timestamp) | |
| #declare filepath | |
| HIST=$HOME/.bash_history | |
| TEMP=/tmp/tmp_hist |
| 1. Save files to ~/.vim/dict | |
| 2. Add to ~/.vimrc: | |
| "THESAURUS | |
| "Add personal synonym files | |
| if !empty(glob("~/.vim/dict")) | |
| set thesaurus+=~/.vim/dict/thesaurus-vim-en | |
| set thesaurus+=~/.vim/dict/thesaurus-vim-de | |
| endif |
| #include <getopt.h> | |
| #include <iostream> | |
| int num = -1; | |
| bool is_beep = false; | |
| float sigma = 2.034; | |
| std::string write_file = "default_file.txt"; | |
| void PrintHelp() | |
| { |
| #!/bin/bash | |
| ##UNINSTALL | |
| #sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
| ##Optional: so vim can be uninstalled again via `dpkg -r vim` | |
| #sudo apt-get install checkinstall | |
| #sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
| ##INSTALL |
| session_name: dev | |
| windows: | |
| - window_name: code | |
| start_directory: ~/proj/code | |
| focus: true | |
| panes: | |
| - shell_command: | |
| - '[ -d ~/src/dict/computer ] && fortune ~/src/dict/computer || fortune -s' | |
| - window_name: build |
| # bash/zsh completion support for core Git. | |
| # | |
| # Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
| # Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
| # Distributed under the GNU General Public License, version 2.0. | |
| # | |
| # The contained completion routines provide support for completing: | |
| # | |
| # *) local and remote branch names | |
| # *) local and remote tag names |