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
| # 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)' |
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
| 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 | |
| } |
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
| 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\] \$ ' |
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
| alias ls='ls -GFh' | |
| alias ll='ls -l' | |
| docker() { | |
| if [[ $@ == "pls" ]]; then | |
| command docker stop $(docker ps -q) | |
| else | |
| command docker "$@" | |
| 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
| # 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] |