1
0
Fork 0

fish: login shell to read "/etc/profile" and "~/.profile"

This commit is contained in:
Alex Kotov 2024-10-29 06:12:19 +04:00
parent 0253c33c5e
commit ecd7cd1085
6 changed files with 26 additions and 0 deletions

View file

@ -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
View file

5
openbsd/etc/profile Normal file
View file

@ -0,0 +1,5 @@
for f in /etc/profile.d/*.sh; do
if [ -f "$f" -a -r "$f" ]; then
. "$f"
fi
done

View file

@ -0,0 +1,2 @@
export AUTOCONF_VERSION='2.72'
export AUTOMAKE_VERSION='1.16'

12
openbsd/etc/shells Normal file
View 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

View file

@ -0,0 +1,3 @@
#!/bin/ksh -l
exec /usr/local/bin/fish "$@"