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:
Ivan Malison 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 timestamp='date +%s'
alias go2dotfiles='cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)' alias go2dotfiles='cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)'
alias fn='find . -name ' alias fn='find . -name '
alias prj='cd ~/Projects'
# enables the sudoing of aliases. # enables the sudoing of aliases.
alias sudo='sudo ' alias sudo='sudo '

View File

@ -175,3 +175,9 @@ function set_osx_hostname() {
sudo scutil --set LocalHostName $new_hostname sudo scutil --set LocalHostName $new_hostname
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string $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_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" add_to_front_of_path "/usr/local/bin"

4
extra.sh Normal file
View File

@ -0,0 +1,4 @@
pip install --user -rresources/python_packages.txt
# Install powerline.
pip install --user git+git://github.com/Lokaltog/powerline

View File

@ -6,14 +6,12 @@ brew upgrade
# Install GNU core utilities (those that come with OS X are outdated) # Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils brew install coreutils
echo "Dont forget to add $(brew --prefix coreutils)/libexec/gnubin to \$PATH."
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed # Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils brew install findutils
# Install Bash 4 # Install Bash 4
brew install bash brew install bash
brew install scala
brew install sbt
brew install greadlink
# Install wget with IRI support # Install wget with IRI support
brew install wget --enable-iri brew install wget --enable-iri
@ -22,19 +20,29 @@ brew install wget --enable-iri
brew tap homebrew/dupes brew tap homebrew/dupes
brew install homebrew/dupes/grep brew install homebrew/dupes/grep
# Install everything else # Important tools
brew install emacs brew install emacs
brew install git brew install git
brew install tmux brew install tmux
brew install python
brew install htop
brew link python
brew install scala
brew install sbt
# Install everything else
brew install watch
brew install greadlink
brew install nmap brew install nmap
brew install readline brew install readline
brew install netcat brew install netcat
brew install reattach-to-user-namespace brew install reattach-to-user-namespace
brew install daemonize brew install daemonize
ln -s /usr/local/Cellar/daemonize/1.7.4/sbin/daemonize /usr/local/bin/daemonize brew link daemonize
brew install ngrep brew install ngrep
brew install watch
brew install gist brew install gist
# Remove outdated versions from the cellar # Remove outdated versions from the cellar
brew cleanup brew cleanup
# htop wont display all process information if the owner is not root
fix_brew_htop

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd `dirname $BASH_SOURCE` && source bootstrapping.sh cd `dirname $BASH_SOURCE` && source bootstrapping.sh
source dotfiles/lib/shellrc/functions.sh
case `uname` in case `uname` in
'Darwin') 'Darwin')
source resources/osx.sh source resources/osx.sh