Skip to content

Instantly share code, notes, and snippets.

View markarasev's full-sized avatar

Marc Karassev markarasev

  • Finistère - France
View GitHub Profile
@markarasev
markarasev / mark.zsh-theme
Created December 10, 2023 14:44
mark.zsh-theme
# adapted from af-magic.zsh-theme
# primary prompt: directory and vcs info
PS1="${FG[032]}%~\$(git_prompt_info)\$(hg_prompt_info) ${FG[105]}%(!.#.»)%{$reset_color%} "
PS2="%{$fg[red]%}\ %{$reset_color%}"
# right prompt: return code, virtualenv
RPS1="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
if (( $+functions[virtualenv_prompt_info] )); then
RPS1+='$(virtualenv_prompt_info)'
@markarasev
markarasev / .profile
Created December 10, 2023 14:41
.profile
alias ls='ls -GFh'
# adds 'docker pls' command, stops all containers
docker() {
if [[ $@ == "pls" ]]; then
command docker stop $(docker ps -q)
else
command docker "$@"
fi
}
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# PS1=<truc1><couleur1><truc2><couleur2>...
# couleur=\[\033[<style>;<couleur et fond>m\]
PS1='${debian_chroot:+($debian_chroot)}\[\033[02;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;35m\]$(parse_git_branch)\[\033[00m\] \$ '
alias ls='ls -GFh'
alias ll='ls -l'
docker() {
if [[ $@ == "pls" ]]; then
command docker stop $(docker ps -q)
else
command docker "$@"
fi
}
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Marc Karassev
email = markarasev@protonmail.com
[core]
editor = nano
[pull]
rebase = preserve
[push]