Skip to main content

Beauty of shopt


shopt is a builtin command which can be used to customize the way you interact with terminal is several ways. Some of them are:

Ignore typos in path while changing directory

Say you want to go to /home/alse/path and you type /home/alse/paht instead, the following command will intelligently take you to /home/alse/path

shopt -s cdspell

Make commands case insensitive in linux

To be frank I like case sensitiveness of commands in linux unlike in windows command prompt. It makes you more careful while writing scripts. However I know some people who would like case in-sensitiveness.
It is possible to do this using shopt command.

shopt -s  nocaseglob

Remove the need of cd while changing directory

Tired of typing cd command before path? Try this

shopt -s autocd

Now you can simply type the path to go to that directory.

Store Multi-line commands in history

See this blog post http://lifepluslinux.blogspot.in/2014/08/storing-multi-line-commands-in-history.html

shopt -s lithist

Mail warn

If set, and a file that Bash is checking for mail has been accessed since the last time it was checked, the message "The mail in mailfile has been read" is displayed.

shopt -s mailwarn

SIGHUP by default

Bash will send SIGHUP to all jobs when an interactive login shell exits.

shopt -s huponexit


Popular posts from this blog

Baixar PS1 Crash Bandicoot 2 Cortex Strikes Back

PARTE 1: http://www.megaupload.com/?d=1AVO7X8T PARTE 2: http://www.megaupload.com/?d=WUBY6EAH

Barbarian Level 70 Paragon Level 191

Ive been thoroughly enjoying Reaper of Souls, so much so that Ive skipped posting here for some time (sorry, guys) and just concentrated on leveling-up my barbarian character. As you can see from the screenshot below, Ive been spending quite some time transmogrifying and buying up dyes making sure everythings coordinated and shit. Right now my barbarian is the most powerful (i.e., the one able to dish out the most damage) among my characters but I have a feeling that my crusader is going to overtake him really fast (at least until he levels up to 70 - just 2 more levels to go). Also, hes the sugar daddy of the bunch, the one tasked to make the most money for spending by the group. Ive given him some rest in the last couple of weeks however, preferring to adventure with my crusader and exploring his different abilities. Ill be getting him back on track soon enough though as the barbarian is my favorite class. Im currently playing at Torment II but I hope to progress to Torment III as so...

Baixar Jogo Download Mario Kart Double Dash Emulador de NGC PC

Na nova vers�o os gr�ficos ficaram bel�ssimos, o som simplesmente cativante, as musicas de cada cenario fasem a diferen�a na hora de jogar e embalam as corridas. A jogabilidade nem se fala, a possibilidade de fazer Dash (derrapada ou Drift) para ganhar velocidade � essencial para vencer, e ainda tem o fato de que jogamos com dois personagens em cada Kart, ou seja, podemos combinar Mario dirigido e Bowser atrapalhando os adversarios e no meio da corrida basta um toque no bot�o Z e eles mudam de posi��o. Cada dupla de personagem tem seu poder especial, Mario e Luigi tem bolas de foto, Koopa e Paratroopa tem cascos triplos, Bowser e seu filinho podem lan�ar cascos enormes e por ai vai. S�o varios personagens mais 2 destravaveis, os carros ent�o nem se fala, � um mais legal que outro cada um com seu diferencial. Sem d�vida nenhuma Mario Kart Double Dash � um marco para a hist�ria dos games e vale a pena jogar por muitas horas. :::Minima::: Core 2 Duo 8800 GT 1Gb de RAM :::Recomendada ...