XYZ File Manager
Current Path:
/usr/share/Modules/init
usr
/
share
/
Modules
/
init
/
📁
..
📄
bash
(1.7 KB)
📄
bash_completion
(12.53 KB)
📄
cmake
(1.2 KB)
📄
csh
(232 B)
📄
fish
(867 B)
📄
fish_completion
(13 KB)
📄
ksh
(1.7 KB)
📁
ksh-functions
📄
lisp
(3.15 KB)
📄
perl.pm
(764 B)
📄
profile.csh
(109 B)
📄
profile.sh
(479 B)
📄
python.py
(1.14 KB)
📄
r.R
(1005 B)
📄
ruby.rb
(883 B)
📄
sh
(2.08 KB)
📄
tcl
(1.1 KB)
📄
tcsh
(233 B)
📄
tcsh_completion
(7.78 KB)
📄
zsh
(1.99 KB)
📁
zsh-functions
Editing: profile.sh
# shellcheck shell=sh # get current shell name by querying shell variables or looking at parent # process name if [ -n "${BASH:-}" ]; then if [ "${BASH##*/}" = 'sh' ]; then shell='sh' else shell='bash' fi elif [ -n "${ZSH_NAME:-}" ]; then shell=$ZSH_NAME else shell=$(/usr/bin/basename "$(/usr/bin/ps -p $$ -ocomm=)") fi if [ -f "/usr/share/Modules/init/$shell" ]; then . "/usr/share/Modules/init/$shell" else . '/usr/share/Modules/init/sh' fi
Upload File
Create Folder