dot

packages and services management
Log | Files | Refs | README

commit 194dacaddd3f266fe5a81a0d0a97af8c7e1fc47c
parent 5414db584de27f0e4bbc1085ba8eae05170573d4
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sat,  5 Aug 2017 00:35:07 +0200

shell/bin/l: exa replacement in a few commands

Diffstat:
Mgit/.gitconfig | 7++++---
Ashell/bin/l | 16++++++++++++++++
Mshell/profile | 11++++-------
3 files changed, 24 insertions(+), 10 deletions(-)

diff --git a/git/.gitconfig b/git/.gitconfig @@ -1,9 +1,10 @@ [user] - email = josuah.demangeon@gandi.net - name = Josuah Demangeon + email = josuah.demangeon@gandi.net + name = Josuah Demangeon [alias] - graph = log --branches --remotes --decorate --tags --graph --color=never --abbrev-commit --format='%h %cd%d%n%cn <%ce>%n %s%n' + graph = log --branches --remotes --decorate --tags --graph --color=never --abbrev-commit --format='%h %cd%d%n%cn <%ce>%n %s%n' + s = status -s --branch [core] editor = vi diff --git a/shell/bin/l b/shell/bin/l @@ -0,0 +1,16 @@ +cd "${1:-.}" || exit 1 + +printf '%s/\n\n' "$PWD" + +[ -d "$1" ] && printf '%s' + +{ + ls -p | grep '/$' + ls -F | grep -v '/$' +} | column + +if git rev-parse 2> /dev/null +then + printf '\n' + git status -s --branch +fi diff --git a/shell/profile b/shell/profile @@ -1,10 +1,7 @@ -PS1='$([ $? = 0 ] || printf "\033[31m\"\"\"\033[m\n")$( - [ "$SSH_CLIENT" ] && hostname - git rev-parse 2> /dev/null && echo && git-status -) -::: ' -PS2=': ' -PS3=': ' +PS1=' +$([ $? = 0 ] && printf "\033[1m:::\033[m" || printf "\033[31;1m:::\033[m") ' +PS2=' : ' +PS3=' : ' alias cl='printf "\033[H\033[2J"'