每次重灌ubuntu時都會發現缺東缺西的
趕緊記下來以免又忘了
[Git]
sudo apt-get install git-core git-doc gitweb git-gut gitk git-email git-svn趕緊記下來以免又忘了
[Git]
git config --global color.ui true
git config --global user.name "Boton Chou"
git config --global user.email "xxx@gmail.com"
git config --global user.name "Boton Chou"
git config --global user.email "xxx@gmail.com"
[SCIM]
sudo apt-get install scim scim-pinyin scim-chewing scim-tables-zh scim-qtimm im-switch
im-switch -s scim
[Docky]
sudo apt-get install docky
[Terminal]
From boton@boton-desktop:/home/boton/Dropbox$
To boton@boton-desktop:Dropbox$
simply open ~/.bashrc and change the lower case \w in
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
to upper case \W
(or just copy .bashrc from the old one.)
[Vim]
sudo apt-get install vim
copy ~/.vim ~/.vimrc to the new system.
[CTags]
sudo apt-get install ctags
[libgnome]
sudo apt-get install libgnome2-0
add alias open='gnome-open' in ~/.bashrc
[rm]
alias rm to trash:
1) sudo apt-get install trash-cli
2) open a new file /usr/local/bin/trash-rm, and paste the code and save it.
#!/bin/bash
# command name: trash-rm
shopt -s extglob
recursive=1
declare -a cmd
((i = 0))
for f in "$@"
do
case "$f" in
(-*([fiIv])r*([fiIv])|-*([fiIv])R*([fiIv]))
tmp="${f//[rR]/}"
if [ -n "$tmp" ]
then
#echo "\$tmp == $tmp"
cmd[$i]="$tmp"
((i++))
fi
recursive=0 ;;
(--recursive) recursive=0 ;;
(*)
if [ $recursive != 0 -a -d "$f" ]
then
echo "skipping directory: $f"
continue
else
cmd[$i]="$f"
((i++))
fi ;;
esac
done
trash "${cmd[@]}"
3) chmod +x /usr/local/bin/trash-rm
4) alias rm = 'trash-rm'
[Others]
CompizConfig Settings Manager, Dropbox, Chrome, VLC, GIMP, ...
沒想到真的有人寫命令列裡的資源回收桶功能!!
回覆刪除黑阿 大家應該都有錯刪的恐怖經驗
刪除有點忘記在哪找到的 晚點附上出處