|
|
|
|
|
|
|
|
|
|
|
[ -z "$PS1" ] && return |
|
|
|
|
|
|
|
HISTCONTROL=ignoredups:ignorespace |
|
|
|
|
|
shopt -s histappend |
|
|
|
|
|
HISTSIZE=1000 |
|
HISTFILESIZE=2000 |
|
|
|
|
|
|
|
shopt -s checkwinsize |
|
|
|
|
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" |
|
|
|
|
|
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then |
|
debian_chroot=$(cat /etc/debian_chroot) |
|
fi |
|
|
|
|
|
case "$TERM" in |
|
xterm-color) color_prompt=yes;; |
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$force_color_prompt" ]; then |
|
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then |
|
|
|
|
|
|
|
color_prompt=yes |
|
else |
|
color_prompt= |
|
fi |
|
fi |
|
|
|
if [ "$color_prompt" = yes ]; then |
|
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' |
|
else |
|
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' |
|
fi |
|
unset color_prompt force_color_prompt |
|
|
|
|
|
case "$TERM" in |
|
xterm*|rxvt*) |
|
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" |
|
;; |
|
*) |
|
;; |
|
esac |
|
|
|
|
|
if [ -x /usr/bin/dircolors ]; then |
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" |
|
alias ls='ls --color=auto' |
|
|
|
|
|
|
|
alias grep='grep --color=auto' |
|
alias fgrep='fgrep --color=auto' |
|
alias egrep='egrep --color=auto' |
|
fi |
|
|
|
|
|
alias ll='ls -alF' |
|
alias la='ls -A' |
|
alias l='ls -CF' |
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f ~/.bash_aliases ]; then |
|
. ~/.bash_aliases |
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat /etc/runpod.txt |
|
echo -e "\nFor detailed documentation and guides, please visit:\n\033[1;34mhttps://docs.runpod.io/\033[0m and \033[1;34mhttps://blog.runpod.io/\033[0m\n\n" |
|
PATH='/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |
|
VAST_CONTAINERLABEL="$(cat ~/.vast_containerlabel)" |
|
PS1="\[\e]0;\u@$VAST_CONTAINERLABEL: \w\a\]\[\e[01;34m\]\u\[\e[m\e[01m\]@\[\e[01;36m\]$VAST_CONTAINERLABEL\[\e[m\e[01m\]:\[\e[01;37m\]\w\$\[\e[m\] " ; if [ ! -e "$HOME/.no_auto_tmux" ] && [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ] && [ "$TMUX_STARTED" = "" ]; then tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; elif ! [[ -z "$TMUX" ]]; then echo 'Welcome to your vast.ai container! This session is running in `tmux`.'; echo 'To disconnect without closing your processes, press ctrl+b, release, then d.'; echo 'To disable auto-tmux, run `touch ~/.no_auto_tmux` and reconnect. See also https://tmuxcheatsheet.com/'; fi; |
|
DIRECT_PORT_START=0 |
|
DIRECT_PORT_END=0 |
|
VAST_CONTAINERLABEL=C.12733928 |
|
|