Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
it-tricks [2017/10/12 18:25] popel |
it-tricks [2017/10/17 09:16] belohlavek [Bash] |
||
---|---|---|---|
Line 6: | Line 6: | ||
Feel free to add your name and editor. | Feel free to add your name and editor. | ||
- | * **vim**: Ondřej Bojar, Ruda Rosa, ... | + | * **vim**: Ondřej Bojar, Ruda Rosa, Milan Straka (C++ completion, Python completion, asynchronous make), ... |
* **emacs**: ? | * **emacs**: ? | ||
+ | * **nano**: | ||
* **atom**: Martin Popel | * **atom**: Martin Popel | ||
+ | * **Kate**: Jonáš Vidra | ||
+ | * **PyCharm**: | ||
===== Bash ===== | ===== Bash ===== | ||
Line 14: | Line 17: | ||
* '' | * '' | ||
+ | ==== Directory-local Bash history ==== | ||
+ | * Ondřej Bojar prefers to store the history in each directory in '' | ||
+ | * Note that this creates the " | ||
+ | * Ondřej Dušek (''/ | ||
+ | if [ -z " | ||
+ | export USER=`whoami` | ||
+ | fi | ||
+ | |||
+ | # Store all history with times and directories | ||
+ | function store_history () { | ||
+ | history 1 | awk '($2 !~ " | ||
+ | } | ||
+ | export PROMPT_COMMAND=" | ||
+ | |||
+ | # Grep history | ||
+ | function dhist (){ | ||
+ | DIR=`pwd` | ||
+ | command grep " | ||
+ | } | ||
+ | |||
+ | function hist (){ | ||
+ | if [ " | ||
+ | tail -n 30 ~/ | ||
+ | else | ||
+ | command grep " | ||
+ | fi | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Colorful manpages ==== | ||
+ | Add this to your .bashrc (tested on .zshrc). Colors can be easily customized. | ||
+ | |||
+ | < | ||
+ | man () { | ||
+ | env LESS_TERMCAP_mb=$' | ||
+ | LESS_TERMCAP_md=$' | ||
+ | LESS_TERMCAP_me=$' | ||
+ | LESS_TERMCAP_se=$' | ||
+ | LESS_TERMCAP_so=$' | ||
+ | LESS_TERMCAP_ue=$' | ||
+ | LESS_TERMCAP_us=$' | ||
+ | man " | ||
+ | } | ||
+ | </ | ||
===== Git ===== | ===== Git ===== | ||
* [[https:// | * [[https:// | ||
Line 31: | Line 78: | ||
* You **should not turn off** Linux workstations at ÚFAL, unless really needed (or agreed with it@ufal). In that case, try the standard ways, and if they do not work, try Ctrl+Alt+SysRq+[R, | * You **should not turn off** Linux workstations at ÚFAL, unless really needed (or agreed with it@ufal). In that case, try the standard ways, and if they do not work, try Ctrl+Alt+SysRq+[R, | ||
* Ondřej Bojar has implemented many [[http:// | * Ondřej Bojar has implemented many [[http:// | ||
+ | * The web versions of the text utils are often older than the ones in ''/ | ||
+ | * [[http:// | ||
+ | * [[https:// | ||
+ | * shuf | ||