Thread: simple aliases
10-15-2006, 09:58 AM #1ktc0utGuestsimple aliases
hi, i was ust wondering where i should start when i want to write out something simple like :
i want the ls command to always execute "ls -F"
which file would i open and edit to make that permanent, im trying to find out where i can write other commands as well.
for example i wanna make a script or alias or whatever so that i do not ahve to type out : (ifconfig | grep 'inet ' | grep -v 127.0.0.1 | cut -d\ -f2) every time i want to see the ip address.
10-15-2006, 07:56 PM #2
Put this in your .bashrc file (if you don't have one, make one):
alias ls='ls -f'
Should be able to do something similar for that ifconfig command.Always listen to experts. They’ll tell you what can’t be done and why. Then do it!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By VicMar in forum OS X - Operating SystemReplies: 1Last Post: 02-23-2015, 11:10 AM
By Edmound in forum Switcher HangoutReplies: 5Last Post: 06-30-2013, 12:52 AM
By pjiffy in forum OS X - Operating SystemReplies: 4Last Post: 11-01-2011, 08:36 PM
By JamesTaylor in forum iOS and AppsReplies: 0Last Post: 05-15-2011, 08:58 AM
By ezhangin in forum OS X - Operating SystemReplies: 2Last Post: 03-07-2006, 06:48 AM