Переглянути джерело

small changes, add alias upgrade

pull/1/head
10sr 12 роки тому
джерело
коміт
7ca1184c8e
1 змінених файлів з 7 додано та 5 видалено
  1. +7
    -5
      .bashrc

+ 7
- 5
.bashrc Переглянути файл

@@ -69,8 +69,8 @@ alias la="ls -A"
alias lla="ls -Al"
# alias less=""
alias vl=/usr/share/vim/vimcurrent/macros/less.sh
alias em="emacs -nw"
alias apt-get="sudo apt-get"
alias em="emacs -nw; echo emacs terminated."
# alias apt-get="sudo apt-get"
alias aptin="apt-get install"
alias aptsearch="apt-cache search"
alias aptshow="apt-cache show"
@@ -84,6 +84,11 @@ alias g=git
alias q=exit
alias pcalc="python -i -c 'from math import *' "
alias _myreloadrc="test -f ~/.bashrc && source ~/.bashrc"
alias sudo="sudo " # use aliases through sudo
if isdarwin
then alias upgrade="port selfupdate && port sync && port upgrade installed"
else alias upgrade="sudo apt-get autoremove --yes && sudo apt-get update --yes && sudo apt-get upgrade --yes"
fi
# alias diff="$(type colordiff >/dev/null 2>&1 && test $TERM != dumb && echo color)diff -u"
# type trash >/dev/null 2>&1 && alias rm=trash

@@ -234,9 +239,6 @@ dl-my-init-files(){
fi
done
}
port-autosync(){
port selfupdate && port sync && port upgrade installed
}
_mygitconfig(){
git config --global user.name '10sr'
git config --global user.email '8slashes+git@gmail.com'


Завантаження…
Відмінити
Зберегти