-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbashrc
More file actions
executable file
·26 lines (20 loc) · 865 Bytes
/
bashrc
File metadata and controls
executable file
·26 lines (20 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Typically bash is compiled to source the .bashrc file on non-login, non-interactive ssh sessions. This feature is enabled by all major Linux distributions.
# .bashrc is so-called $ENV file (like .kshrc, .kshenv or .aliases).
# It gets executed upon each non-interactive invocation of the shell. Thus usually not upon running interactive shell (RHEL does so, though).
# For DEBUG purposes
export BASHRC=true
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# If shell is interactive, let zsh come to play
# An interactive shell is one started without non-option arguments
# and without the -c option whose standard input and error are both
# connected to terminals (as determined by isatty(3)), or one
# started with the -i option.
if [[ $- == *i* ]]; then
#echo "Interactive"
export SHELL=zsh
exec zsh -l
fi