Version 2018.12.29

My Unix environment

Or how I learnt to use Linux as a teenager

I started to use Linux in my high school. The first distribution I have installed was Damn Small Linux (DSL). It was a minimalistic Linux distribution of which install size was less than 100MB. I had installed it on my tiny USB stick and managed to revive an old desktop machine (Fujitsu FMV CE series, I remember) whose HDD had stopped to work. DSL allowed me to have my own machine, which felt super cool over anything when I was a teenager.

The large potion of my software stack was shaped during those days. I choose fluxbox as my window manager, because it was the de facto for systems with limited resources. Running KDE or GNOME was simply not something affordable for me back then. I learned to use Vim, because it was the one installed by default. I've actually heard about Emacs from my friend and once I considered to install it, but failed to do so because of its installation size exceeding the remaining space available (I had only 512MB storage available for the entire system. I needed to put everything including the operating system etc. there).

It was more than a decade ago, and computers have gotten significantly more powerful since then. My software stack, however, hasn't been changed much.

The following is the list of softwares I use to write this article.

Software

Screenshots

.Xresources

URxvt*font:         terminus-14, k14
URxvt*boldFont:     terminus-bold-14, k14minb
URxvt*scrollBar:    false
URxvt*lineSpace:    1
URxvt*reverseVideo: 1

URxvt*color4:  #3465A4
URxvt*color12: #729FCF

.bashrc

export EDITOR=vim
export PATH="$PATH:~/code/bin"

HISTSIZE=1000
HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "

alias ls='ls --color=auto'; 
alias ll='ls -l';
alias xclip='xclip -selection clipboard'
alias w3m='w3m -B -4'
alias qgrep='grep -rI'

# External
export GPG_TTY=$(tty)
export GPG_AGENT_INFO
export MPD_HOST=${XDG_RUNTIME_DIR}/mpd/socket

# PS1
mark()
{
    tr '01' '*$' < /sys/class/power_supply/AC/online
}

PS1='[\u@\h:\w/]$(mark) '

.vimrc

syntax enable

set number
set ignorecase
set smartcase

set expandtab
set smarttab
set history=100
set shiftwidth=4
set tabstop=4 
set listchars=tab:!.

" backup
set backup
set backupdir=~/.vim/tmp
set nohlsearch
set formatoptions+=m

" keymap
noremap J <C-E>
noremap K <C-Y>
noremap <Space> <C-D>
inoremap <C-L> i<C-X><C-L>

.gitconfig

[user]
    name = Fujimoto Seiji
    email = fujimoto@ceptord.net
[push]
    default = simple
[credential]
    helper = cache --timeout=7200
[core]
    editor = vim
[log]
    decorate = true
[alias]
    graph = log --graph --all --oneline
    ch = checkout
    b = branch -v

Index Page