These are my dotfiles containing my aliases in Bash and customizations to my command prompt. I borrowed its structure and the command prompt theme from jacobtomlinson
To use this, download the repository to Dropbox then create a symbolic link of .bash_profile, .bashrc, and .bashrc.d to the home directory, $HOME. The symbolic links to the home directory are created by executing the following in Terminal:
cd ~
ln -s ~/Desktop/Dropbox/misc/dotfiles/.bash_profile
ln -s ~/Desktop/Dropbox/misc/dotfiles/.bashrc
ln -s ~/Desktop/Dropbox/misc/dotfiles/.bashrc.d
(note: I moved my Dropbox folder to the Desktop)
-
You've installed an application that you want to use in the command line. To do this, add it to your shell's path in
other_config.sh
found in.bashrc.d
:export PATH=$PATH:<path to application>
Reference: Will Robertson
-
Create a text file with
#!/bin/bash osascript -e "tell application "Finder" to activate"
-e "tell application "Finder" to set the folder of the front window to POSIX file "`pwd`" " > /dev/null
in it. Save is as fin
(no extension)
2. Place fin
in the usr/local/bin directory
3. Give fin
the proper executable permission by entering the following in terminal
chmod +x fin
Enter fin
in Terminal and the current directory should open in a Finder window that's already open (instead of a new Finder window, which is the case with open .
).