forked from colonelpanic/dotfiles
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:
@@ -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 '
|
||||
|
@@ -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`
|
||||
}
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user