| @@ -176,9 +176,10 @@ null type pacmatic && { | |||||
| export PACMAN="pacmatic" | export PACMAN="pacmatic" | ||||
| } | } | ||||
| alias ubuntu-upgrade="sudo apt-get autoremove --yes && sudo apt-get update --yes && sudo apt-get upgrade --yes" | |||||
| alias arch-upgrade="sudo pacman -Syu" | |||||
| alias port-upgrade="sudo port selfupdate && sudo port upgrade outdated && sudo port uninstall leaves" | |||||
| null type apt-get && \ | |||||
| alias aupgrade="sudo apt-get autoremove --yes && sudo apt-get update --yes && sudo apt-get upgrade --yes" | |||||
| null type port && \ | |||||
| alias pupgrade="sudo port selfupdate && sudo port upgrade outdated && sudo port uninstall leaves" | |||||
| if iscygwin; then | if iscygwin; then | ||||
| null type windate || alias windate="/c/Windows/System32/cmd.exe //c 'echo %DATE%-%TIME%'" | null type windate || alias windate="/c/Windows/System32/cmd.exe //c 'echo %DATE%-%TIME%'" | ||||
| @@ -58,6 +58,20 @@ git_config(){ | |||||
| fi | fi | ||||
| } | } | ||||
| mac_defaults(){ | |||||
| # add quit entry in menu | |||||
| defaults write com.apple.finder QuitMenuItem -bool YES | |||||
| # show full path on titlebar | |||||
| defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES | |||||
| # do not show desktop icons | |||||
| defaults write com.apple.finder CreateDesktop -boolean false | |||||
| killall finder | |||||
| # disable dashboard | |||||
| #defaults write com.apple.dashboard mcx-disabled -bool YES | |||||
| } | |||||
| gen_source_script(){ | gen_source_script(){ | ||||
| # _gen_source_script file lines | # _gen_source_script file lines | ||||
| test $# -eq 2 || return 1 | test $# -eq 2 || return 1 | ||||