Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
44ccf1e4
Commit
44ccf1e4
authored
5 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
CONFIG: adjust aliases to use project-dir directly
- reduces some reliance on env variables
parent
84d7141e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
etc/config.csh/aliases
+8
-9
8 additions, 9 deletions
etc/config.csh/aliases
etc/config.sh/aliases
+16
-16
16 additions, 16 deletions
etc/config.sh/aliases
with
24 additions
and
25 deletions
etc/config.csh/aliases
+
8
−
9
View file @
44ccf1e4
...
@@ -6,11 +6,10 @@
...
@@ -6,11 +6,10 @@
# \\/ M anipulation |
# \\/ M anipulation |
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Copyright (C) 2011-2016 OpenFOAM Foundation
# Copyright (C) 2011-2016 OpenFOAM Foundation
# Copyright (C) 2017-20
18
OpenCFD Ltd.
# Copyright (C) 2017-20
20
OpenCFD Ltd.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# License
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
# <http://www.gnu.org/licenses/>.
#
#
# File
# File
# etc/config.csh/aliases
# etc/config.csh/aliases
...
@@ -38,13 +37,13 @@ alias wmUnset 'source $WM_PROJECT_DIR/etc/config.csh/unset'
...
@@ -38,13 +37,13 @@ alias wmUnset 'source $WM_PROJECT_DIR/etc/config.csh/unset'
# ~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~
alias
foam
'cd $WM_PROJECT_DIR'
alias
foam
'cd $WM_PROJECT_DIR'
alias
src
'cd $
FOAM_SRC
'
alias
src
'cd $
WM_PROJECT_DIR/src
'
alias
lib
'cd $FOAM_LIBBIN'
alias
lib
'cd $FOAM_LIBBIN'
alias
app
'cd $
FOAM_APP
'
alias
app
'cd $
WM_PROJECT_DIR/applications
'
alias
sol
'cd $
FOAM_SOLVERS
'
alias
sol
'cd $
WM_PROJECT_DIR/applications/solvers
'
alias
util
'cd $
FOAM_UTILITIES
'
alias
util
'cd $
WM_PROJECT_DIR/applications/utilities
'
alias
tut
'cd $
FOAM_TUTORIALS
'
alias
tut
'cd $
WM_PROJECT_DIR/tutorials
'
alias
run
'cd $
FOAM_RUN
'
alias
run
'cd $
WM_PROJECT_USER_DIR/run
'
alias
ufoam
'cd $WM_PROJECT_USER_DIR'
alias
ufoam
'cd $WM_PROJECT_USER_DIR'
alias
uapp
'cd $WM_PROJECT_USER_DIR/applications'
alias
uapp
'cd $WM_PROJECT_USER_DIR/applications'
...
...
This diff is collapsed.
Click to expand it.
etc/config.sh/aliases
+
16
−
16
View file @
44ccf1e4
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
# Change compiled version aliases
# Change compiled version aliases
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias
wmSet
=
'. $WM_PROJECT_DIR/etc/bashrc'
alias
wmSet
=
'. $
{
WM_PROJECT_DIR
:?}
/etc/bashrc'
alias
wmInt32
=
'wmSet WM_LABEL_SIZE=32'
alias
wmInt32
=
'wmSet WM_LABEL_SIZE=32'
alias
wmInt64
=
'wmSet WM_LABEL_SIZE=64'
alias
wmInt64
=
'wmSet WM_LABEL_SIZE=64'
alias
wmDP
=
'wmSet WM_PRECISION_OPTION=DP'
alias
wmDP
=
'wmSet WM_PRECISION_OPTION=DP'
...
@@ -30,24 +30,24 @@ alias wmSP='wmSet WM_PRECISION_OPTION=SP'
...
@@ -30,24 +30,24 @@ alias wmSP='wmSet WM_PRECISION_OPTION=SP'
alias
wmSPDP
=
'wmSet WM_PRECISION_OPTION=SPDP'
alias
wmSPDP
=
'wmSet WM_PRECISION_OPTION=SPDP'
# Clear env
# Clear env
alias
wmUnset
=
'. $WM_PROJECT_DIR/etc/config.sh/unset'
alias
wmUnset
=
'. $
{
WM_PROJECT_DIR
:?}
/etc/config.sh/unset'
# Change directory aliases
# Change directory aliases
# ~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~
alias
foam
=
'cd $WM_PROJECT_DIR'
alias
foam
=
'cd $
{
WM_PROJECT_DIR
:?}
'
alias
src
=
'cd $
FOAM_SRC
'
alias
src
=
'cd $
{WM_PROJECT_DIR:?}/src
'
alias
lib
=
'cd $FOAM_LIBBIN'
alias
lib
=
'cd $
{
FOAM_LIBBIN
:?}
'
alias
app
=
'cd $
FOAM_APP
'
alias
app
=
'cd $
{WM_PROJECT_DIR:?}/applications
'
alias
sol
=
'cd $
FOAM_SOLVERS
'
alias
sol
=
'cd $
{WM_PROJECT_DIR:?}/applications/solvers
'
alias
util
=
'cd $
FOAM_UTILITIES
'
alias
util
=
'cd $
{WM_PROJECT_DIR:?}/applications/utilities
'
alias
tut
=
'cd $FOAM_TUTORIALS'
alias
tut
=
'cd $
{
FOAM_TUTORIALS
:-${WM_PROJECT_DIR:?}/tutorials}
'
alias
run
=
'cd $FOAM_RUN'
alias
run
=
'cd $
{
FOAM_RUN
:-${WM_PROJECT_USER_DIR:?}/run}
'
alias
ufoam
=
'cd $WM_PROJECT_USER_DIR'
alias
ufoam
=
'cd $
{
WM_PROJECT_USER_DIR
:?}
'
alias
uapp
=
'cd $WM_PROJECT_USER_DIR/applications'
alias
uapp
=
'cd $
{
WM_PROJECT_USER_DIR
:?}
/applications'
alias
usol
=
'cd $WM_PROJECT_USER_DIR/applications/solvers'
alias
usol
=
'cd $
{
WM_PROJECT_USER_DIR
:?}
/applications/solvers'
alias
uutil
=
'cd $WM_PROJECT_USER_DIR/applications/utilities'
alias
uutil
=
'cd $
{
WM_PROJECT_USER_DIR
:?}
/applications/utilities'
# Refresh the environment
# Refresh the environment
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment