Append in .bashrc
:
Install github client with
### git
alias gpl="git pull"
alias gap="git add ."
alias gcm="git commit -m"
alias gps="git push"
alias gst="git status"
Append in .bashrc
:
Install github client with
### git
alias gpl="git pull"
alias gap="git add ."
alias gcm="git commit -m"
alias gps="git push"
alias gst="git status"
Append in .bashrc:
# time: https://askubuntu.com/a/770970
# color: https://www.tecmint.com/customize-bash-colors-terminal-prompt-linux/
# non printing caracters like \e: https://stackoverflow.com/a/14225726
# copy-paste emojis: https://emojipedia.org/search/?q=sloth
export PS1="\[\e[1;32m\]\t \w 🐬🏐🐋🌴🍹 \[\e[0;37m\]"
Will print time, current working directory and a sloth emoji.
ssh-keygen -o
You can view the created files (one without extension and one with .pub
) under ~/.ssh/
. When creating several of them, you may want to rename them appropriately (e.g. work, pers...).
to the relevant github account: https://github.com/settings/ssh/new
The configuration file for ssh is usually not created by default so we create it: