You are currently browsing the tag archive for the ‘command line’ tag.

…he he – vimblog.vim is really nice tool – especially for persons who prefer CLI to GUI….

I can really recommend it…Once again kudos for Pedro! πŸ™‚

I could fi. post my recent findings instantly from Vim now… Making and editing notes and thoughts here anyway – so, it’s easy to just post them – perhaps somebody could make use of my modest findings, too?

Hoping to be of a help to new Linux users,
tami πŸ˜‰

…and obligatory screenshot of working vimblog.vim:

sidux, dwm, vimblog.vim, urxvt with import ;)


Just found a new – very interesting tool! – to proceed with using mostly CLI tools on my comp.

This post is written in Vim! using tool found here:


Script is written in ruby by Pedro.

Big thank you!

It seems it works… :o)

…so – I can actually nearly give up GUI – enjoying dwm, vim, elinks, mutt, mpc, newsbeuter, centericq – not mentioning bash and urxvt!…and many others command line tools. Relief, simplicity, Zen…

Big thanks to vimblog maintainer from grateful

tami πŸ™‚

I managed to “create” my first bash script today… And yes – you guess it right – this is the script made off of the little alias I wrote of earlier.

The script is called – but you are welcome to change it! πŸ˜‰

It’s creating the file at your $HOME/diary/ directory – just as the Calendar extension to vim (with vim’s suffix .cal) – so you can also see it in your vim calendar now… My son is laughing at me that I try to make emacs out of vim….LOL But it’s not true – the aim of the script was:
1. To exercise writing small scripts
2. To create something useful for me – the possibility to quickly write down some thoughts while “playing around” in terminal.

Just in case if anybody would like to play with similar things as I do, here goes the mini-script:

#! /bin/bash
# Silly – or perhaps funny? – diary writing mini-script…
YEAR=$(date “+%Y”)
MONTH=$(date “+%-m”)
DAY=$(date “+%-d”).cal

mkdir -p $DESTDIR
cd $DESTDIR && date +%T | cat >> $DAY ; cat >> $DAY ; echo | tac >> $DAY
echo "Have a nice day :o)"

(to make it work you are to copy it and save it – best at $HOME but in your path. If you would like to know more about it – try to read this: Writing shell scripts [especially this part: About PATH] or this: Bash and bash scripts. When you will have the file – fi. called in your path [here it is $HOME/bin/ directory] -> open terminal -> write: cd bin/ -> write: chmod u+x Now it will be possible to execute script from your terminal by simply writing After executing=typing in the terminal you will be able to note your thoughts directly in the terminal. When you finish -> press: Ctrl+d on the empty line -> script will finish the work then… )

Have a fun – and feel free to change it to your heart content,

tami :o)

Powered by ScribeFire.

I used last two days on developing new image of my sidux desktop – to make it still more helpful and perhaps also serving more productivity…

Thanks to my Debian set up and Google search I found two brilliant applications: when and todo.txt.

When is “an extremely simple personal calendar program” as they say on their web page – but as for me – simple is beautiful! It works splendid showing you upcoming tasks and calendar. Adding tasks is simple and requires only ability to write in your favorite editor…

Todo.txt is simple script developed by Gina Trappani – you’ve probably heard of her and the Lifehacker web site, don’t you? πŸ˜‰ If not – I strongly recommend the place as you can find a lot of nice tips not only for using computer CLI but also some practical life hints (PLI…? πŸ˜‰ ) Check f.i. Gina’s text here.

Following hints on when and todo.txt web pages (though changing them slightly…LOL) I added both applications to my .bashrc.

And this is how my sidux/wmii desktop welcomes me now while opening terminal:

Happy “human productivity”,

tami πŸ™‚

Technorati Tags: , , , ,

Powered by ScribeFire.







EDIT: another nice tool found or rather rediscovered by me last week is pal.

You can install it on any Debian based distro by simply:

# apt-get install pal

This is very nice, little application which lets you organize your events as well as TODO list! read the man page to learn more, please πŸ™‚

After installing it you can also add it to your .bahsrc:

$ pal -r 7

and than, of course reload your bash by typing a commend:

$ source .bashrc

The effect of your editing will be nice calendar + todo and events list at the bash prompt (each time you open your terminal). See new screenshot:


Happy “sourcing” πŸ˜‰


The only thing I missed since changing to Linux was short program which would make it possible to make quick notes and/ or diary-entries.

I discovered the magic of the command line then and…hey – I began to think LOL – it has to be solution.

So – yesterday I found quite nice even if not perfect “remedy” for my not satisfied yet needs. It’s my first trial to make something in bash – so, please, be gentle…ok? πŸ˜‰ But – if you have the better or smarter solution – or you see how you can improve mine – do not hesitate to leave the comment here – it will be very appreciated – as I only start to learn bash.

So – “back to our rams” – the solution is simple: You can simply add following alias to your .bashrc file:

alias dz='cd /home/username/diary && cat >> `date +%F`&& date +%c | tac >> `date +%F`'

1. Exchange username with your user name, of course

2. Create directory called diary in your home

3. Reload your window manager by fi. log out and log into it. You can also simply clse the terminal window and open it again (malsdad tip πŸ™‚ ) or type in the terminal: source .bashrc (which doesn’t require from you closing existing instance of a terminal) -> your bash configuration file will be reloaded and you can start using your alias.

4. Open terminal of your choice and simply type into it: dz

The effect – everything you type after using alias dz and then: typing end and – Ctrl d (thanks to malsdad, again for a tip!) will be saved in text file under the name of current date in the directory called diary. You can also press Enter and Ctrl c πŸ˜‰ to save the file…

What’s more – you can use the alias as often as you wish during the day – next entries will be added “auto-magically” πŸ˜‰ to the same file with the current date and time underneath…Magic – isn’t it? he he

In the similar way you can create an alias to make notes in the terminal using for example following code:

alias dn='cd /home/username/notes && cat >> `date +%F`&& date +%c | tac >> `date +%F`'

EDIT: nicer version of the alias created by malsdad and friend (THANK YOU! πŸ™‚ ) – this one adds date at the beginning of a note + empty line at the end.

alias notesz='cd directoryname && date +%c | cat >> `date +%F` ; cat >> `date +%F` ; echo | tac >> `date +%F`'

And – please once again – remember that it is just the first step – one can certainly create much smarter bash script or script in other language… Anyway – it was funny to find it out on my own and I hope that it will help somebody else with similar to mine “problems” or… perhaps – inspire one of the Great Coders around…? who knows…? πŸ˜‰


tami πŸ™‚

Hello, Time :)

October 2019
« Sep    


cc -Some rights

by Tami

Blog Stats

  • 118,550 hits