![]() ![]() MYUSERID.bvars which defines variables local to the computer, like server names. MYUSERID.bashrc which defines my personal bash macros, then invokes. bashrc which sets up PATH to contain $HOME/bin, then calls. bash_profile invokes ssh-add for keys, adds /opt to the PATH for MacPorts, then calls. When bash starts, it invokes $HOME/.bash_profile. (In 2008, some of my shell scripts were broken by Ubuntu 6.10 when they changed /bin/sh to dash.įor the steps to generate your ssh keys to enable access to other computers without giving a password every time, This tries to make sure that my personal scripts are executed by a shell that works the same way on all operating systems. Remember what I always say: "If it's worth doing, it's worth writing a tool that does it."Īs described in my CPAN page, I ensure that Perl programs in ~/bin have a first ("shebang") lineĪnd then create a symlink from /usr/local/bin/perl to /opt/local/bin/perl.įor shell scripts in ~/bin, I make the ("shebang") line #!/bin/sh. (This can be a time saver, but risks the propagation of programming errors.) When I need to write a new tool, I often start from an old one and modify it. Some of these tools have been incrementally tweaked and developed over more than 30 years, on whatever system I was using at the time. I keep personal shell scripts, Perl programs and modules, and utilities in a subdirectory ~/bin of my home directory. To set this up, type the following in a Terminal window:Įcho "export PATH=$HOME/bin:$PATH" >. This allows tools I add to my /bin to be used in scripts. One of the first things I do is to create a directory called /bin in my home directory,Īnd then tell the system to search $HOME/bin for commands, as well as the standard places that Unix-derived systems look. You can type man ssh in a Terminal window to get standard Unix help, useful to Unix programmers. (A free subscription to Apple Developer lets you download additional tools and information for developing Mac and iPhone applications.) You can also install Apple's programming development environment including Xcode, header files, documentation, and auxiliary tools. The tools include C and C++ compilers, all the Unix tools like Perl, rsync, make, etc. (In Ventura, this queues a request to install the tools using ► App Store., which you then invoke.) In a Terminal window, type xcode-select -install. These notes apply to Snow Leopard through Ventura.Īpple provides a complete free set of system development tools free with OS X. See the installation section for the latest operating system for a step by step cookbook. ![]() You have to install tools in the right order, because some tools depend on others. Many of these programming tools run in a Terminal shell window, which allows you to type Unix commands. Can run VirtualBox or other VMM and encapsulate a Mac, Windows or Linux environment for testing.Plays well with other OSs: can network with Unix/Linux and Windows.One computer does both productivity and programming.Fast modern CPUs and GPUs, good build quality, Apple support. (These notes are based on my current use of OS X 13, Ventura.) Other programmers may need other tools and processes most of them are supported on OS X. Program documentation and presentation.Įvery developer uses different tools and has different preferences.Database application development and use of relational databases.Web page and application development in HTML, Javascript, Flash, using various page generation tools, including testing web pages in multiple browsers and platforms.Collaboration with other programmers using version control.Software development in Perl, Java, C, C++, and Go including editing, compilation, test, packaging, and deployment.This note describes how I use OS X as a programmer's tool, for
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |