Loading

Tag Archives: bash

cygwin: setup.exe crashes when upgrading packages

I´ve run into a very strange problem.
Every time I run setup.exe and try to upgrade bash package

setup.exe crashes with the familiar “setup.exe has generated errors and will be close by windows. you will need to restart the program. An error log is being created”. The solution I found is for bash package but [...]

bash: clear: command not found

If your are getting “bash: clear: command not found” on you first install of cygwin you have to make sure that you include ncurses packages in your cygwin installation. clear.exe doesn´t come in the standard installation. You must include ncurses to get clear.exe in your system. If you are using bash you can use Ctrl-L [...]

Synchronize bash history among different machines

Today I finally decide to make a script to keep my bash_history synchronized among all the machines I use. It’s a simple script that retrieves all the .bash_history files from all my machines, merges all the files into one, sort it, removes the duplicated lines and write it back to all the machines. The only [...]

Enabling bash history and more

After reading the tip I mentioned in my previous post I made some changes to my `~/.bashrc` to enable bash history

alias e32="$HOME/eclipse/eclipse321/eclipse"
alias e33="$HOME/eclipse/eclipse33M4/eclipse"
alias nb="$HOME/netbeans-5.5/bin/netbeans"
 
JAVA_HOME=$HOME/jdk1.6.0
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:
 
export PATH
HISTFILESIZE=1000000000
HISTSIZE=1000000
HISTCONTROL=ignoredups
shopt -s histappend
INPUTRC=~/.inputrc

and to my `~/.inputrc`

# .inputrc
# "\e[A" and "\e[B" being whatever your terminal uses for up & down.
"\e[A": history-search-backward
"\e[B": history-search-forward

And with the following simple command I can see the [...]

What’s in your bash History? – O’Reilly ONLamp Blog

Very useful tip to analyze you bash history.

Bookmark It

Hide Sites

$$(‘div.d79′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });