dotfiles in my home directory on Ubuntu.
My bash aliases, functions, environment variables, and tab auto-completions sourcing.
Requirements:
- Bash-compatible tab auto-completion source files.
- git
- hub
- Android git-repo (repo)
- Android tools (adb, fastboot, etc.)
- crosstool-NG
A private .bashrc sample, please copy to home directory and edit it for yours.
cp .bashrc.local ~/
vi ~/.bashrc.local
Manually sourcing for exporting Oracle (Sun) JDK to $PATH
.
Usage: (use it only when you need)
. ~/.bash_sunjdk
Requirements:
- Create several symlinks linked to full version number, e.g.,
$ cd ~/opt/java/
$ ll
[...]
jdk-5 -> jdk-5u22-x64/
jdk-5u22-x64/
jdk-6 -> jdk-6u45-x64/
jdk-6u45-x64/
jdk-7 -> jdk-7u72-x64/
jdk-7u72-x64/
jdk-8 -> jdk-8u25-x64/
jdk-8u25-x64/
[...]
Proxy setting for curl tool.
My personal git configuration.
Required packages:
-
diff-highlight
for pagers.
It located at official git repository. You need to git clone it, And symlink it (contrib/diff-highlight/diff-highlight) into your $PATH. -
vim
andvimdiff
for editor and diff tool.
sudo apt-get install vim
A private .gitconfig sample, please copy to home directory and edit it to add username/email, ..., etc.
cp .gitconfig.local ~/
vi ~/.gitconfig.local
My personal global .gitignore
file.
Requirements:
- Create a symlink
~/.config/git/ignore
.
mkdir -p ~/.config/git
ln -s /PATH/TO/dotfiles/.git_ignore ~/.config/git/ignore
My regularly used configurations of minicom, using with UART console.
- Create several symlinks pointed to them in home directory:
ln -s /PATH/TO/dotfiles/.minirc.* ~
My preferred tmux settings, included some vi-like key-bindings.
Tmux is a terminal multiplexer, useful in localhost and remote server, especially when ssh to remote server via a shaky and unstable connection.
My preferred URxvt (rxvt-unicode) settings, included color definitions, url launcher, selection autotransforms.
Install URxvt:
sudo apt-get install rxvt-unicode-256color
rxvt-unicode-256color
is only existed on Ubuntu 12.04 and 14.04+,
please install rxvt-unicode
instead if you are using other Ubuntu version.
sudo apt-get install rxvt-unicode
Required packages:
sudo apt-get install xsel xclip
sudo apt-get install xfonts-terminus
sudo apt-get install fonts-arphic-uming
sudo apt-get install fonts-hanazono
To apply the change:
xrdb -I$HOME -merge ~/.Xresources
Create a directory for URxvt perl libs look-up path:
mkdir -p ~/.urxvt/ext
Add the Bert Münnich's URxvt perl libs via symlinks. (optional)
mkdir ~/opt && cd $_
git clone https://github.com/muennich/urxvt-perls.git
cd ~/.urxvt/ext
ln -s ../../opt/urxvt-perls/{clipboard,keyboard-select,url-select} .
p.s. confirm-paste
URxvt perl lib only existed on Ubuntu 12.04 and 14.04+,
please remove it from URxvt.perl-ext-common:
line if you are using other
Ubuntu version.
A sample of font configurations for URxvt, included font, font-size, With regard to the font, I preferred the bitmap fonts, like the Terminus. Additionally, I mixed the CJK and the english fonts, e.g., Terminus + AR PL UMing (文鼎明體) + Hanazono MinCho (花園明朝體). See the file content for more details.
Please copy to home directory and edit it to choose font-size suited with your display resolution and ppi.
cp .Xresources.local ~/
vi ~/.Xresources.local