Skip to content

Instantly share code, notes, and snippets.

View sergey-melnychuk's full-sized avatar
💪
strong engineer

Sergey Melnychuk sergey-melnychuk

💪
strong engineer
View GitHub Profile
# Generated by Cargo
# will have compiled files and executables
**/target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# These are backup files generated by rustfmt
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt install -y git
sudo apt install -y gcc
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
@sergey-melnychuk
sergey-melnychuk / PS1
Created May 29, 2018 16:17
Command propmt
# MacOS: ~/.bash_profile
# Linux: ~/.bashrc
get_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ :\1/'
}
export PS1='\u@[\w$(get_git_branch)] $ '