Skip to content

Instantly share code, notes, and snippets.

@leshikus
Last active February 23, 2024 12:44
Show Gist options
  • Save leshikus/92e1fe46656a3b66e302ed3fede6aac8 to your computer and use it in GitHub Desktop.
Save leshikus/92e1fe46656a3b66e302ed3fede6aac8 to your computer and use it in GitHub Desktop.
Configure my terminal session
# specific settings go here
export HTTPS_PROXY="$https_proxy"
export EDITOR=vim
test -L sh.sh || ln -s sc.sh sh.sh
test -d /localdisk2/afedotov && export HOME=/localdisk2/afedotov
cd
export PS1="\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\] `pwd -P`\[\033[0m\]\n$ "
cat <<EOF >.vimrc
syntax on
set tabstop=4 expandtab
EOF
git config --global user.email "alexei.fedotov@gmail.com"
git config --global user.name "Alexei Fedotov"
git config --global pull.rebase true
test -d "$HOME"/miniconda3/bin && export PATH="$PATH":"$HOME"/miniconda3/bin
if test $(basename "$0") = sc.sh
then
screen -r -d -S main || screen -S main bash
else
bash
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment