Search Results

Customize your Terminal prompt

Open /boot/home/.profile and scan down until you find a line that reads: PS1=’$ ‚ Edit it so that it reads PS1=’$PWD> ‚ The next time you open up Terminal, the prompt will report the current directory, no matter what you do. PWD is a Unix/Be command meaning Print Working Directory — you’ve just told Terminal […]

 

Add a scripts directory to your path

While the official place to put executable files that you’ve added to the system yourself and want to be accessible from any Terminal prompt is /boot/home/config/bin, many people who work with a lot of scripts find it useful to store them in a separate directory, to keep them separate from the uneditable, actual binaries living […]

 

Get needed libraries for an application

To get a nice printout of which libraries are required by a given application, cut and paste the text below into your .profile. Once you’ve done that, you can just type getlibs appname (where appname is the name of the application you want to investigate) in your Terminal to find the needed libraries. getlibs() { […]

 

Title your Terminal pt. II

This tip builds on the information in the tip Title your Terminal. If you’d like the title of your Terminal windows to reflect the current working directory, you need to do two things: 1) Edit your .profile file (in your home directory) and add the line PROMPT_COMMAND=~/config/bin/term 2) Create a file called term (or use […]

 

Fortunes told

BeOS includes a port of the famous Unix „fortune“ command, which delivers a random pseudo-profundity when you type „fortune“ at a Terminal prompt. To get your fortune told every time you launch the Terminal, open up the file /boot/home/.profile and add these lines: /boot/beos/bin/fortune printf “ „

 

Quick source

After editing your .profile or UserSetupEnvironment, you need to „source“ or basically „re-read“ the file’s contents into memory in order for the changes to take effect. I’m lazy, and „source“ is 5 letters too many. Just type: . .profile (or . ~/.profile if you are not in your home dir) instead of source .profile Isn’t […]

 

slrn: Configuring a stable newsreader

With the exception of Pineapple, most of the BeOS newsreaders have serious problems with stability and functionality. While not as fancy, the command-line client slrn is 100% stable, very fast, and has great hotkeys. Unfortunately, setting up slrn can be a little tricky if you’re not familiar with command-line apps. Here’s what you need to […]

 

More prompt customizations

Sick of that goofy $ in your Bash shell? Don’t know where the heck you currently are? Here’s a nice prompt that has colors and shows you the current location! Change the colors as needed if you want, or just use the defaults! Stick this in a file /boot/home/.profile If the file doesn’t exist, create […]

 

Enhancing bash

By adding a few lines to /boot/home/.profile, you can extend the functionality of the bash shell in BeOS. For instance, you can use all those freaky ANSI tags to make the terminal prettier. Paste the following block into your ~/.profile (note that this stuff also works for bash on other platforms that support ANSI color […]

 

Find and edit files simultaneously

BeOS queries can make your life easier in ways you might not expect. This method uses queries to allow you to find and launch any file quickly, regardless the current directory. For example, if you’re sitting in a Terminal at /boot/home and want to edit a file living in /boot/home/projects/reports/March/daily… you don’t have to cd […]

 
 
Blogroll
Tags

Haiku

Resources