Sponsored Content
Full Discussion: Customizing bash on AIX
Top Forums UNIX for Advanced & Expert Users Customizing bash on AIX Post 303037197 by cokedude on Thursday 25th of July 2019 12:49:10 PM
Old 07-25-2019
Customizing bash on AIX

AIX is really different from most distros I am used to. I am trying to set up my .bashrc so I did this in the file. I noticed when I ssh into the server or use the bash command for a new shell it was being ignored.

Code:
#-------------------------------------------------------------
# Source global definitions (if any)
#-------------------------------------------------------------


if [ -f /etc/bashrc ]; then
      . /etc/bashrc   # --> Read /etc/bashrc, if present.
fi
# Set Vim as my default editor
export EDITOR=vim

export PATH=$PATH:/opt/nimsoft

echo "Loading /u/user/.bashrc..."

Then I added the first one to my .profile. Is the first one better or the second one better? I have seen both used. When I login with ssh .bashrc seems to be working. Is there a better way to do this? When I use the bash command for a new shell my .bashrc is being ignored. Can I get some recommendations on how to handle this?

Code:
if [ -s ~/.bashrc ]; then
    source ~/.bashrc;
fi

if [[ -f ~/.bashrc ]] ; then
	. ~/.bashrc
fi

After figuring this out I would like to push this out to all of our AIX servers. How would I do this without screwing up the ksh users? I prefer bash and ksh is the default shell.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

customizing xterm windows

Does anyone now how to customize an xterm window in solaris to dynamically 'pwd' in the banner. I know how to launch with xterm -n 'cwd' but it does not change when I change dir's. (4 Replies)
Discussion started by: toddy44
4 Replies

2. UNIX for Dummies Questions & Answers

Customizing CDE background

i have a question about setting the background in a workspace in CDE. I have CDE runnning on Solaris 8 here at work and I want to use some images I have as the background in or two of the workspaces. When I use xv on the image and choose the option the option from the Display Menu -> Root:... (1 Reply)
Discussion started by: Kanu77
1 Replies

3. Shell Programming and Scripting

customizing desktop

I need help editing my openwin file. I've got it all set up so the options I normally use (xman, cmdtools, xeyes, printtool) automatically come up when I log on, but it won't read my -geometry entries. I got them by right-clicking on the desktop, but apparently they need to be entered a certain... (0 Replies)
Discussion started by: sdienlin
0 Replies

4. Red Hat

Customizing RHEL OS

Hello Every One, I am not sure if this is the correct forum to post this question. But please help me with your ideas. I have got a work (proj) where i need to customize the RHEL OS . This would involve building packages, installing them , correcting privileges etc and all these... (4 Replies)
Discussion started by: shirsha
4 Replies

5. UNIX for Dummies Questions & Answers

Customizing UNIX

Hello i'm just wondering how to customize the color of unix's (or SSH) background, cursor, and letter? Thank you for your time (4 Replies)
Discussion started by: mgyeah
4 Replies

6. UNIX for Dummies Questions & Answers

Customizing from address in mailx command

Currently I am using mailx command for sending mails. But the mail is sent as from userid@servername by default. Is it possible to customise the from mail address in mailx command? Thanks (2 Replies)
Discussion started by: pandeesh
2 Replies

7. UNIX for Dummies Questions & Answers

customizing default file permission

By default, the files are creates with this permissions:-rw-rw-r-- Is it possible to customize that in such away that ,always created as 777. Where i need to make changes? Please guide me. Thanks (2 Replies)
Discussion started by: pandeesh
2 Replies

8. Shell Programming and Scripting

Customizing ps command

Hi, I want to monitor our batch jobs at a specific interval for later analysis to see the performance and CPU utilization USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ps aux|grep dsadm|head xxxxx 386 0.0 0.0 103524 15448 pts/0 S Mar27 0:00... (6 Replies)
Discussion started by: ratheeshjulk
6 Replies

9. Red Hat

RHEL6 customizing prompt do not work

Hi, I'm trying to customize the ksh prompt for users on a RHEL 6.6 system for having user@host pwd : $ and user@host pwd # in red color for root. I think it's possible but i do not even succeded for a non root user : I added in my ~/.kshrc : PS1="Hello : " and it works but when i... (4 Replies)
Discussion started by: Fundix
4 Replies
GAMGI(1)							 GAMGI Manual Page							  GAMGI(1)

NAME
gamgi - general atomistic modelling graphic interface SYNOPSIS
gamgi [file_1.xml] ... [file_n.xml] DESCRIPTION
gamgi is a computer package to construct, view and analyse atomic structures. OPTIONS
file_n.xml is a fullname such as: ../dat/molecule/flavors/garlic.xml ~/gamgi/dat/molecule/flavors/garlic.xml http://www.gamgi.org/dat/molecule/flavors/garlic.xml ftp://ftp.gamgi.org/gamgi/dat/molecule/flavors/garlic.xml Object and config data can be mixed, so file_1.xml might be a preferences file, loaded before the other object files. To automate the pro- cedure, just add a line as this to ~/.bashrc: alias gamgi='gamgi ~/gamgi/my_defaults.xml' ENVIRONMENT
GAMGI_HELP Set this variable to let GAMGI know where the Help documentation files are. For example, add a line as this to ~/.bashrc : GAMGI_HELP=~/gamgi/gamgi/doc; export GAMGI_HELP GAMGI_TEXT Set this variable to let GAMGI know where are the .ttf DejaVu files, to render solid fonts. For example, add a line as this to ~/.bashrc: GAMGI_TEXT=~/gamgi/gamgi/src/io/fonts; export GAMGI_TEXT BROWSER Set this variable to let GAMGI know which browser to launch, in case this is chosen to read Help. For example, add a line as this to ~/.bashrc: BROWSER=firefox; export BROWSER HELP
Read introductory information with Help->Start. Browse the documentation at http://www.gamgi.org/ or its local copy at gamgi/doc/. Use the help mechanisms reunited under the Help button. Subscribe the mailling list <gamgi-users@gamgi.org>. Contact the author at <jcgp07@gmail.com>. Throughout all interfaces and formats, lengths are in angstrom, angles in degrees and decimal numbers are represented with dots. Every parameter that can be defined in an interface can be also defined in a file and vice-versa. INTERFACES
Rotate, move, scale the selected object pressing the left, middle, right mouse button. Export the selected object choosing File->Export. The statusbar shows the selected object (left) and layer (right). To select an object, choose Object->Select and press over the object. Or choose the object class on the menu above, with the middle button, before pressing on the object. Or press twice Layer, Window or GAMGI on the menu above. When the object has no visual representation, press the mouse over the graphic area, to pop up a menu. To select a layer, choose Layer->Select and press the mouse over the graphic area, to pop up a menu. Or choose the layer class on the menu above, with the middle button, before pressing the mouse over the graphic area, to pop up a menu. Solid objects usually require lights with diffuse and specular components to be properly represented in 3D space, otherwise they look flat. Wired objects do not have a 3D representation, so diffuse and specular lights are not reflected, becoming poorly visible when using lights, unless a significant ambient component is used. Often it is worth to draw solid and wired objects in different layers, with and without lights. When a task dialog is open, to learn how it works, just select Help->Current and another dialog will pop up, explaining the meaning of all the parameters in the task dialog. To see detailed explanations of GAMGI interfaces, consult the reference manual at http://www.gamgi.org/interfaces/reference.html, doc/interfaces/reference.html or Help->Topic->Interfaces. FORMATS
GAMGI can import files in .xyz and .xml native format, selected automatically by the file extension. GAMGI can export files in .ps, .ppm, .jp[e]g, .png, .tif[f], .x3d and native .xml formats, selected automatically by the file extension. In GAMGI native XML format, a water molecule can be described as: <gml> <molecule> <atom element="O" x="0.000" y="0.000" z="0.000" id="O1"/> <atom element="H" x="0.776" y="0.540" z="0.000" id="H1"/> <atom element="H" x="-0.776" y="0.540" z="0.000" id="H2"/> <bond parent1="O1" parent2="H1"/> <bond parent1="O1" parent2="H2"/> </molecule> </gml> To see detailed explanations of GAMGI formats, consult the reference manual at http://www.gamgi.org/formats/reference.html, doc/formats/reference.html or Help->Topic->Formats. EXAMPLES
Choose Help->Tutorials to get a list of fully described procedures, exemplifying most aspects of the work with GAMGI. SEE ALSO
http://www.gamgi.org/ AUTHOR
Written by Carlos Pereira <jcgp07@gmail.com>, helped by Steffen Moeller <moeller@debian.org> and Daniel Leidert <daniel.leidert@wgdd.de>, from the Debian project. 0.14.3 November 30 2009 GAMGI(1)
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy