fish: login shell to read "/etc/profile" and "~/.profile"
This commit is contained in:
parent
0253c33c5e
commit
ecd7cd1085
6 changed files with 26 additions and 0 deletions
4
files.sh
4
files.sh
|
@ -54,4 +54,8 @@ fi
|
|||
if [ "$PREFIX" = 'openbsd' ]; then
|
||||
echo
|
||||
install_file openbsd root wheel 644 '/etc/man.conf'
|
||||
install_dir root wheel 755 '/etc/profile.d'
|
||||
install_file openbsd root wheel 644 '/etc/profile.d/autotools.sh'
|
||||
install_file openbsd root wheel 644 '/etc/shells'
|
||||
install_file openbsd root bin 755 '/usr/local/bin/fish-login'
|
||||
fi
|
||||
|
|
0
openbsd/etc/man.conf
Executable file → Normal file
0
openbsd/etc/man.conf
Executable file → Normal file
5
openbsd/etc/profile
Normal file
5
openbsd/etc/profile
Normal file
|
@ -0,0 +1,5 @@
|
|||
for f in /etc/profile.d/*.sh; do
|
||||
if [ -f "$f" -a -r "$f" ]; then
|
||||
. "$f"
|
||||
fi
|
||||
done
|
2
openbsd/etc/profile.d/autotools.sh
Normal file
2
openbsd/etc/profile.d/autotools.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
export AUTOCONF_VERSION='2.72'
|
||||
export AUTOMAKE_VERSION='1.16'
|
12
openbsd/etc/shells
Normal file
12
openbsd/etc/shells
Normal file
|
@ -0,0 +1,12 @@
|
|||
# $OpenBSD: shells,v 1.8 2009/02/14 17:06:40 sobrado Exp $
|
||||
#
|
||||
# list of acceptable shells for chpass(1).
|
||||
# ftpd(8) will not allow users to connect who are not using
|
||||
# one of these shells, unless the user is listed in /etc/ftpchroot.
|
||||
/bin/sh
|
||||
/bin/csh
|
||||
/bin/ksh
|
||||
/usr/local/bin/git-shell
|
||||
/usr/local/bin/fish
|
||||
/usr/local/bin/fish-login
|
||||
/usr/local/bin/bash
|
3
openbsd/usr/local/bin/fish-login
Executable file
3
openbsd/usr/local/bin/fish-login
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/ksh -l
|
||||
|
||||
exec /usr/local/bin/fish "$@"
|
Loading…
Reference in a new issue