Symboliclinker mac legit7/2/2023 The old script was complicated and involved creating a temporary directory whenever you run ls from $HOME, symlinking all files in $HOME to inside of that directory, and then running ls there. # Run the command every time a shell is opened. # If the BASH function was loaded into your shell then it will # executing a program that is in your $PATH (for example, `ls`) If you want to have these helper commands be available every time you open a terminal, you can paste this code into the ~/.bashrc file for BASH or ~/.zshrc file for ZSH. Full details: Installing the script and explaining what it does. This does both of those things with 4 fewer keystrokes, while being simple and benign. (Whenever you open a shell) You'll automatically navigate to ~/workspace and list the contents.Īs a CLI user, I'm constantly typing cd to return to $HOME, and then doing ls to find the folder I'm looking for.Type w and hit from your Terminal to instantly cd ~/workspace and ls ~/workspace.I offer a simple BASH command to make using the CLI friendlier on OSX. Solution: Just using a different folder as your CLI workspace Pogue's answer is very interesting, but it will probably hide those folders in Finder. I don't recommend moving any folders that GUI apps create from the Mac Home directory. Those folders are friendly for GUI users but they get in the way for CLI users. My guess is that OP doesn't want to see all of OSX's folders in the $HOME directory when they're in the terminal (like ~/Pictures, ~/Documents, etc.). Click on the lock and authenticate with an administrator account.Enter the root password you wish to use in both the Password and Verify fields, then click OK.Choose Enable Root User from the Edit menu.Enter an administrator account name and password, then click OK.Click the lock in the Directory Utility window.Click the "Open Directory Utility." button.Click the "Edit." or "Join." button at the bottom right.Click the lock and authenticate as an administrator account.From the View menu choose Users & Groups.From the Apple menu choose System Preferences. There is a System Service called SymbolicLinker that will add an option to your context menu that will create a symbolic link for you. Mac OS sees the changes just fine and points to those directories (on the external drive) automatically and I have had no issues doing it this way. I logged in as root and symlinked all of my directories "Documents' Downloads " Movies", etc and moved them to an external drive. I personally use symlinks to move all of those directories under my User account.
0 Comments
Leave a Reply. |