Subtitle: the sad state of bash syntax for arrays
Crap. No way. Can't find great documentation, just try&fail to get what I want.
And now, for something completely different
I switched to DuckDuckGo as default search engine.
Send a feedback and yegg will reply in minutes! Awesome!
boring blog of dexgeh
24.5.10
arrays in bash: not for resale
Published by
dexgeh --verbose
alle
14:53
0
comments
Tags
Arch,
bash,
projects,
script,
search engine
2.5.10
OpenBox moments
I was annoyed by the strange behavior of gnome, so I decided to switch back to a lightweight window manager.
Now it's Openbox moment.
Configuration was easy, following the Arch Wiki.
Added some effect with cairo-compmgr, pypanel for taskbar/systray, conky and some clicking on obconf.
The result is a good looking gui; I leaved also xdm, /sbin/login works fine (updated the .zshrc post, see for details) and last but not least regenerated menus with
Now it's Openbox moment.
Configuration was easy, following the Arch Wiki.
Added some effect with cairo-compmgr, pypanel for taskbar/systray, conky and some clicking on obconf.
The result is a good looking gui; I leaved also xdm, /sbin/login works fine (updated the .zshrc post, see for details) and last but not least regenerated menus with
mmaker -vf OpenBox3
.
20.4.10
the nice editor and the backspace
Subtitle: The sad state of Backspace and Delete key in linux(cit.)
For a newbie, what is the scariest part in a linux system? A lot of people hate linux 'cause "in a forum they made me open a DOS prompt to solve...".
The console is a powerful tool, but a lot of people doesn't like it.
Personally I prefer a lot of console applications, for the lighteness and the power of simple commands; sometimes is useful a quick edit in the console window of a configuration file, so I searched for a text editor that didn't change my mental keybinding. You know what I mean.
In my experience, they are the same in EditPlus, UltraEdit, Notepad++, eclipse, kwrite, gedit: graphical text editor.
So after using vi, emacs -nw and nano for those dirty jobs I found ne.
It's the text editor that I'm searching for, just a console tool with the gui guys keybindings.
But...
The only thing that didn't work is the backspace key in urxvt. It's a well known problem in linux terminal, explained here (from the author of ne, Sebastiano Vigna).
The quick fix is the
So I written a trivial fix for this:
~/bin/ne.sh
and added to my .zshrc
Fix'd! :)
For a newbie, what is the scariest part in a linux system? A lot of people hate linux 'cause "in a forum they made me open a DOS prompt to solve...".
The console is a powerful tool, but a lot of people doesn't like it.
Personally I prefer a lot of console applications, for the lighteness and the power of simple commands; sometimes is useful a quick edit in the console window of a configuration file, so I searched for a text editor that didn't change my mental keybinding. You know what I mean.
ctrl+c
is for copy, ctrl+v
is for paste, ctrl+x
is for cut, ctrl+s
is for saving, ctrl+q
is for quit, ctrl+f
is for search and ctrl+r
is for replace.In my experience, they are the same in EditPlus, UltraEdit, Notepad++, eclipse, kwrite, gedit: graphical text editor.
So after using vi, emacs -nw and nano for those dirty jobs I found ne.
It's the text editor that I'm searching for, just a console tool with the gui guys keybindings.
But...
The only thing that didn't work is the backspace key in urxvt. It's a well known problem in linux terminal, explained here (from the author of ne, Sebastiano Vigna).
The quick fix is the
export TERM=gnome
way, but I didn't like it, 'cause in some application it may cause mistake.So I written a trivial fix for this:
~/bin/ne.sh
#!/bin/sh
export TERM=gnome
/usr/bin/ne $1
export TERM=rxvt
and added to my .zshrc
alias='ne=~/bin/ne.sh'
Fix'd! :)
Published by
dexgeh --verbose
alle
23:17
5
comments
Tags
keybinding,
linux,
ne,
rxvt-unicode,
script,
shell,
text editor
17.4.10
my .zshrc
~ cat .zshrc
HISTFILE=~/.histfile
HISTSIZE=200
SAVEHIST=1000
#bindkey -e
bindkey -v
typeset -g -A key
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
bindkey '^?' backward-delete-char
bindkey '^[[1~' beginning-of-line
bindkey '^[[5~' up-line-or-history
bindkey '^[[3~' delete-char
bindkey '^[[4~' end-of-line
bindkey '^[[6~' down-line-or-history
bindkey '^[[A' up-line-or-search
bindkey '^[[D' backward-char
bindkey '^[[B' down-line-or-search
bindkey '^[[C' forward-char
# for rxvt
bindkey "\e[8~" end-of-line
bindkey "\e[7~" beginning-of-line
zstyle :compinstall filename '/home/milky/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
PROMPT=$'%~ '
eval $(dircolors -b)
alias 'mssh=ssh microbo -l root'
alias 'ls=/bin/ls --color=always -1 -S'
alias 'ne=~/bin/ne.sh'
alias 'emacs=/usr/bin/emacs -nw'
alias 'grep=/bin/grep --color=auto'
alias 'halt=/usr/bin/sudo /sbin/halt'
alias 'reboot=/usr/bin/sudo /sbin/reboot'
alias 'pacman=/usr/bin/sudo /usr/bin/pacman'
alias 'clyde=/usr/bin/sudo /usr/bin/clyde'
alias 'cat=/usr/bin/dog'
alias 'cp=/bin/cp -v'
alias 'mv=/bin/mv -v'
alias 'rm=/bin/rm -v'
fortune futurama calvin montypython
echo `whoami`@`hostname` - `date +'%A, %d %b %Y %k:%M.%S'`
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
startx
fi
~
11.4.10
Search in irssi through google Json API
I wrote this simple script for irssi:
http://github.com/dexgeh/googlejson4irssi
It is based on the google perl example.
Never wrote perl before. :)
http://github.com/dexgeh/googlejson4irssi
It is based on the google perl example.
Never wrote perl before. :)
Iscriviti a:
Post (Atom)
Warning
My first language isn't english. Feel free to gently correct my words. :)
a cloud
.Xdefaults
Arch
bash
config
console
cygwin
gdata api
google
hardware
html
httpclient
irssi
jabber
jar
java
json-lib
jtidy
keybinding
linux
maven
ne
nettop
openbox
openim
oracle
pagination
parser
perl
projects
reddit
rxvt-unicode
saxon
script
search engine
shell
sql
ssd
ssh
terminal
text editor
urxvt
window manager
windows
xorg
xpath
zsh
zshrc