Last active
May 23, 2025 14:31
-
-
Save ivarprudnikov/fff4c8f45457898df12c22a707341ffb to your computer and use it in GitHub Desktop.
Bash setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Setup prompt appearance" | |
# to add username@hostname to prompt, then prepend the following: | |
# \[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\] | |
# The promp should look like: | |
# ~/Documents/project $ gitbranch _ | |
export PS1="\[\033[32m\]\w\[\033[00m\] \$ \[\033[34m\]\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\[\033[00m\] " | |
# On FreeBSD and Mac OS X, ls shows colors if the CLICOLOR environment variable is set | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
# by default show list with sizes, show hidden | |
alias ls='ls -lAGFh' | |
# WSL is too lazy to do this | |
if [ -z "$SSH_AUTH_SOCK" ]; then | |
echo "Load ssh agent and add keys" | |
eval $(ssh-agent -s) | |
ssh-add | |
ssh-add ~/.ssh/id_ed25519_mykey | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wsl .bashrc extensions | |
# <...> existing stuff | |
# some more ls aliases | |
alias ls='ls -lAGFh --color=auto' | |
# WSL is too lazy to do this | |
if [ -z "$SSH_AUTH_SOCK" ]; then | |
echo "Load ssh agent and add keys" | |
eval $(ssh-agent -s) | |
ssh-add | |
ssh-add ~/.ssh/id_ed25519_mykey1 | |
ssh-add ~/.ssh/id_ed25519_mykey2 | |
fi | |
echo "Setup prompt appearance" | |
# to add username@hostname to prompt, then prepend the following: | |
# \[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\] | |
# The promp should look like: | |
# ~/Documents/project $ gitbranch _ | |
export PS1="\[\033[32m\]\W\[\033[00m\]:\[\033[34m\]\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\[\033[00m\] \$ " | |
echo "Golang - allow to install from private repositories" | |
export GOPRIVATE="github.com/myorganization" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment