Showing posts with label Text editor. Show all posts
Showing posts with label Text editor. Show all posts

02 May, 2014

Making terminal(s) remember commands

English: Sample of Bash in GNOME Terminal. Scr...
English: Sample of Bash in GNOME Terminal. Screenshot taken in Fedora Linux. Results of ping, pwd, cd, yum and ls command. فارسی: نمونه‌ای از محیط متنی لینوکس (بش) در نرم‌افزار گنوم ترمینال، توزیع فدورا. خروجی دستورهای ping، pwd، cd، ls، و yum. (Photo credit: Wikipedia)
02-May-2014


Here is another trick that I did, and now I had to re-do, so I am recording it, so I can go back to it anytime.

Edit bashrc: gedit/vi ~/.bashrc
Add at last line: export PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND"

-a switch is to make terminal record the commands
-n is to record the command history from all terminals (so this is an option)

Save and exit, and voila!

To look at command history, just type history and press [Enter]
To run (again) a command, type !number (on the left of the command) and press [Enter]

Here's the reference: [SOLVED] Terminal doesn't remember last commands

Till then!
Enhanced by Zemanta

09 September, 2011

Changing font in Notepad++

English: Icon for Notepad++
English: Icon for Notepad++ (Photo credit: Wikipedia)
SiteSpinnerI am one user who prefers to "see" the fonts in whatever application I'm using to my preferred font faces. As I was looking for some text editor that could both be better than Notepad, the one that comes with XP/Windows 7, a standard issue, I could say, and with another functionality - to be able to handle html editing.

I found Amaya, which is supposed to be W3's choice, etc., etc., (I mean, there is so much said about Amaya), but I didn't see to like it, and then there are a lot more of those free HTML editors, but what I found to be simple enough to use, and lightweight enough to be installed, and works (last one is the 'ummpphh!' factor), I sticked to Notepad++.

And as said, I wanted to use my own fonts in this software, and I searched, and searched, and searched, and what I knew from other softwares, it doesn't apply to Notepad++.

The Russian Editor

So I searched the bottomless world wide web for ways and means of doing what I wanted to do, and I found some, most of which offers the solution that I have tried - and of course - didn't work (what are those guys thinking?). But I found 2 or 3 that gave the correct solution and approach.

I have lost those links, as I quickly applied, and did some other things that I wasn't able to log those links (for attribution; sorry guys). Here is how it works:

Refactoring HTML: Improving the Design of Existing Web Applications1. Settings > Style Configurator >

  1. Language: Global Styles
  2. Style: Default Style (not Global override)
  3. Then you set your font (right side)


2. Try and make use of the themes:

  1. Select theme: Black broad, Bespin, etc.
  2. Then do again Step #1.


You should be looking at your preferred fonts after this, and the theme of your own liking.

Enjoy!