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. My first distribution was Damn Small Linux, which was a minimalistic Linux distribution designed to be launchable from an external device. I installed it on my USB stick, and managed to revived an old computer with broken HDD. Linux 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 that time. I choose fluxbox, because it was the de facto window manager for resource-scarce systems. Running KDE or GNOME was not affordable for me. I learned to use Vim, because DSL included it in the installation media. I once tried to install Emacs, but failed because its installation size ate up the remaining space available (I had only 512MB storage for the entire system back then).

It was more than a decade ago, and computers have gotten significantly more powerful. 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