Skip to content

wuvei/macOS_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

macOS_tools

Few useful tools for macOS

Open iTerm2 or Terminal in current Folder

  • Open the Script - either open_terminal.scpt or open_iTerm2.scpt , and then choose File -> Export

    open_script

  • Choose export as Application, and put it anywhere you like. Then Save.

    export_as_app

  • (Optional) You can change the icon of your app: Find your app, then right click on it and choose Show Package Contents. Go into Contents/ , and use a text editor to open info.plist, you can find the item with icon name. Then you can edit it and put yours in the Resources directory, or you can just place yours in it and rename it as applet.icns.

    edit_icon_name

  • Finally, find your app, then press and hold the Command key, drag your app to the tool bar. Then we're done! Whenever you want to open iTerm2 or Terminal in the current directory, just click on it.

    place_on_bar

Keyboard Mapping: Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later. Since programmers prefer machanical keyboards and most of those keyboards are for windows, Karaviner-Elements becomes a great software solution.

official site

github

Remove Java JDK and Install via brew cask

###Remove: Refer to the Link Run this command to just remove the JDK:

sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk

Run these commands if you want to remove plugins:

sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
sudo rm -rf /Library/PrivilegedHelperTools/com.oracle.java.JavaUpdateHelper
sudo rm -rf /Library/LaunchDaemons/com.oracle.java.Helper-Tool.plist
sudo rm -rf /Library/Preferences/com.oracle.java.Helper-Tool.plist

Install Java JDK via brew cask

Refer to this Link

brew tap caskroom/versions
brew cask install java8

To get a list of all older versions of java: brew tap caskroom/versions and then use brew search java.

Latex

If you do not want to install 3G MacTex, you could:

Install BasicTex

Download BasicTex From official site Or

brew cask install basictex

Install MacTex-without-gui

If you install BasicTex, you would be bothered by having to install dependency packages when needed. Or you can

brew cask install mactex-no-gui

After that, you should add it to the path

export PATH=/usr/local/texlive/2017basic/bin/x86_64-darwin:$PATH

Update and Install Packages

sudo tlmgr update --self --repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
sudo tlmgr install latexmk --repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet

Reference

About

Few useful tools for macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published