Last active
April 8, 2019 06:35
-
-
Save natevw/0324311ae115ca8d1a9e to your computer and use it in GitHub Desktop.
Better `xed` — the CLI tool for Xcode is handy, but has a few issues that get in the way. For starters, if the file doesn't exist, the builtin `x\ed` won't create a new one. I also noticed that Xcode will open a symlink and let you edit, but then gets really angry when it tries to save. So…this.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias xed='function _xed() { [ ! -f $1 ] && touch $1; xed `python -c "import os,sys;print os.path.realpath(sys.argv[1])" $1`; };_xed' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment