Add extra.sh Add htop to brew installs. Added function to make it so that htop shows all process information even if it is not run as root.

This commit is contained in:
2014-04-25 13:13:40 -07:00
parent f17970b02c
commit a7e245d961
6 changed files with 29 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ alias tmux_cb_to_remote_cb='tmux saveb - | linux_nc_paste_to_remote_clipboard'
alias timestamp='date +%s'
alias go2dotfiles='cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)'
alias fn='find . -name '
alias prj='cd ~/Projects'
# enables the sudoing of aliases.
alias sudo='sudo '

View File

@@ -175,3 +175,9 @@ function set_osx_hostname() {
sudo scutil --set LocalHostName $new_hostname
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string $new_hostname
}
function fix_brew_htop() {
chmod 777 $(readlink -f `which htop`)
sudo chown root $(readlink -f `which htop`)
sudo chmod 6555 `which htop`
}

View File

@@ -7,4 +7,5 @@ function add_to_back_of_path {
}
add_to_back_of_path "$HOME/.local/lib/python2.6/site-packages"
add_to_front_of_path "$(brew --prefix coreutils)/libexec/gnubin"
add_to_front_of_path "/usr/local/bin"