bash has a great feature called dynamic-complete-history that will allow you to complete text at point with contents from your bash history list. examine the following workflow : $ touch file1.txt file-with-a-long-name.txt file3.txt $ some commands $ some more commands $ change directory $ touch file… at this point you want to type touch file-with-a-long-name.txt [...]
Archive for the ‘linux’ Category
bash power tip dynamic-complete-history
Posted in linux, tagged bash, command line, gnu, linux, readline on March 28, 2012 | Leave a Comment »
weird tmux clearhist and standard input buffer interaction
Posted in c++, linux, tmux, tagged c++, stdin, tmux on January 8, 2011 | 1 Comment »
guys when i run a code i get a lot of text dump on the console so i m in the habbit of issuing “tmux clearhist && ./a.out” so that when i scroll back i only see dump pertaining to only the current execution of a.out . turns out that this interacts weirdly with the [...]
xtics ytics from data file in gnuplot
Posted in gnuplot, linux, sed, tagged bash, gnuplot, linux, plotting, sed, shell script on November 9, 2010 | 3 Comments »
there have been some situations where i needed a custom grid on a 2-dimensional plot in gnuplot instead of a regularly placed grid. in order for me to set up a customized grid i have to first set up a customised xtics and/or ytics. gnuplot does provide a way of providing user preferred tics by [...]
better bash history
Posted in linux, tagged bash, bash history, command line, linux, tmux on July 30, 2010 | 3 Comments »
let me first describe the problem that way annoying me for a long long long time. i use tmux and do my compiling and coding in one window and then many a times i need to open a new window to do some other stuff. the problem i face is that the bash commands that [...]
alt key does not work in xterm in archlinux
Posted in linux, tagged archlinux, xterm on June 20, 2010 | 5 Comments »
make sure that your ~/.Xresources file contains the following line
urxvt-tabbed
Posted in linux, tagged archlinux, openbox, tmux, urxvt on April 28, 2010 | 1 Comment »
am having a lot of fun experimenting with archlinux and learning the proper way to approach linux … the arch philosophy. so far i have had lots of fun learning various things about the way linux operates … the archwiki is a wonderful place to learn about so many things … the #archlinux irc channel [...]
gnuplot annoyance
Posted in gnuplot, linux on March 26, 2010 | Leave a Comment »
i hate myself for writing that post title… the joy of free/libre software should muffle any feeling of annoyance or hatred towards a software, so i apologize in advance. anyways… i wonder why the following does not work in gnuplot while the following does why should the order be important? i m sure it has [...]
bash command line navigation meta key alt key
Posted in linux on March 8, 2010 | 2 Comments »
bash has emacs key binding if you need to navigate around the current command and edit it … most novices ( that includes me as well) use the arrow keys to navigate and fix the errors or change the commands however i watched a nice screen cast on bash command line editing which explained how [...]
emacs cpu hog
Posted in emacs, linux on March 6, 2010 | Leave a Comment »
i m on ubuntu 8.04 ( hardy heron ) and every once in a while emacs freezes … i use htop to find out that emacs and X are hogging up cpu cycles … when i kill emacs it all returns to normal. some times i see the same thing happening when i have firefox [...]
prevent dhcp to change resolv.conf
Posted in linux on July 9, 2009 | Leave a Comment »
this pertains to ubuntu 8.04 hardy heron though it might work for others too. the problem:: the dhcp client renews the resolv.conf file to the following domain cc.iitk.ac.in junta.iitk.ac.in .iitk.ac.in nameserver 172.31.1.1 nameserver 172.31.1.130 though i want it to read domain cc.iitk.ac.in junta.iitk.ac.in .iitk.ac.in nameserver 172.31.1.130 nameserver 172.31.1.1 notice the order of the nameservers have [...]