initial commit
This commit is contained in:
53
server/.kshrc
Normal file
53
server/.kshrc
Normal file
@@ -0,0 +1,53 @@
|
||||
# ~/.kshrc
|
||||
#
|
||||
# KornShell configuration for NetBSD
|
||||
#
|
||||
export EDITOR=vi
|
||||
export VISUAL=vi
|
||||
export PAGER=less
|
||||
export MANPAGER=less
|
||||
export LANG=en_CA.UTF-8
|
||||
export LC_CTYPE=en_CA.UTF-8
|
||||
export ENV="$HOME/.kshrc"
|
||||
|
||||
PATH="$HOME/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
|
||||
export PATH
|
||||
|
||||
HISTFILE="$HOME/.ksh_history"
|
||||
HISTSIZE=500
|
||||
SAVEHIST=500
|
||||
|
||||
set -o vi
|
||||
set -o noclobber
|
||||
set -o notify
|
||||
|
||||
mkcd() {
|
||||
mkdir -p "$1" && cd "$1"
|
||||
}
|
||||
|
||||
extract() {
|
||||
case "$1" in
|
||||
*.tar.gz|*.tgz) tar xzf "$1" ;;
|
||||
*.tar.bz2) tar xjf "$1" ;;
|
||||
*.tar.xz) tar xJf "$1" ;;
|
||||
*.zip) unzip "$1" ;;
|
||||
*) echo "Don't know how to extract $1" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
export kE="`echo x | tr x '\033'`"
|
||||
export kGreen="${kE}[1;32m"
|
||||
export kBlue="${kE}[1;34m"
|
||||
export kEnd="${kE}[0m"
|
||||
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*|screen*|tmux*)
|
||||
export PS1='${kGreen}[${USER}${kEnd}@${kBlue}$(hostname -s)${kGreen}]${kEnd} $ '
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -t 1 ]; then
|
||||
printf "NetBSD %s (%s)\n" "$(uname -r)" "$(uname -m)"
|
||||
fi
|
||||
|
||||
export ENV="$HOME/.kshrc"
|
||||
28
server/.profile
Normal file
28
server/.profile
Normal file
@@ -0,0 +1,28 @@
|
||||
# $NetBSD: dot.profile,v 1.12 2024/09/23 12:12:36 uwe Exp $
|
||||
#
|
||||
# This is the default .profile file.
|
||||
# Users are expected to edit it to meet their own needs.
|
||||
#
|
||||
# The commands in this file are executed when an sh user first
|
||||
# logs in.
|
||||
#
|
||||
# See sh(1) for details.
|
||||
|
||||
# Many modern terminal emulators don't provide a way to disable
|
||||
# alternate screen switching (like xterm's titeInhibit). less(1) has
|
||||
# its own option (-X) for that that you can use to alleviate the pain,
|
||||
# as PAGER is the most common scenario for hitting this. Add other
|
||||
# flags according to taste.
|
||||
#export LESS='-i -M -X'
|
||||
|
||||
# Set your default printer, if desired.
|
||||
#export PRINTER=change-this-to-a-printer
|
||||
|
||||
# Set the search path for programs.
|
||||
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin
|
||||
PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
|
||||
export PATH
|
||||
|
||||
# Configure the shell to load .shrc at startup time.
|
||||
# This will happen for every shell started, not just login shells.
|
||||
export ENV=$HOME/.kshrc
|
||||
Reference in New Issue
Block a user