diff --git a/.local/bin/Checking-repo b/.local/bin/Checking-repo index 962f467..658384b 100755 --- a/.local/bin/Checking-repo +++ b/.local/bin/Checking-repo @@ -14,7 +14,7 @@ function scanning(){ EUSCAN=$(euscan --nocolor --quiet "$1") if [ -n "$EUSCAN" ]; then - echo "=============== NOW: $(find ./* -mindepth 2 -maxdepth 2 -name ''"$1"'*.ebuild' | tail -1) ================= + echo "=============== NOW: $(find ./* -mindepth 2 -maxdepth 2 -name ''"$1"'*.ebuild' | sort | tail -1) ================= $(echo -e "$EUSCAN" | tail -1)" fi } diff --git a/.local/bin/Logs-emerge b/.local/bin/Logs-emerge index c1f9202..0f3575b 100755 --- a/.local/bin/Logs-emerge +++ b/.local/bin/Logs-emerge @@ -10,4 +10,4 @@ done echo read -p 'Select number to show logs: ' NUMBER -sudo tail -f ${LOGS[$NUMBER]} | ccze -A +sudo tail -f ${LOGS[$NUMBER]} diff --git a/.zshrc b/.zshrc index e38b8a7..9177135 100644 --- a/.zshrc +++ b/.zshrc @@ -2,6 +2,10 @@ parse_git_branch() { git symbolic-ref --short HEAD 2> /dev/null } +gbranch() { + echo -e "$(git branch "$@")" +} + [ -f /etc/gentoo-release ] && export ZSH="/usr/share/zsh/site-contrib/oh-my-zsh" [ -f /etc/centos-release ] && export ZSH="$HOME/.oh-my-zsh" [ -f /etc/debian_version ] && export ZSH="$HOME/.oh-my-zsh" @@ -67,11 +71,13 @@ alias feh="feh --scale-down" alias changefont="figlet" alias gmaster="git checkout master" alias gcommit="git commit --author='Marcin Woźniak ' -s" -alias gcommitwork="git commit --author='Marcin Woźniak '" +alias gcommitw="git commit --author='Marcin Woźniak '" alias gadd="git add" alias gpush="git push" alias gpull="git pull" -alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches" +alias gstatus="git status" +alias gst="git status" +alias Log="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches" alias gfg="git checkout master && git fetch upstream && git pull upstream master" alias cal="cal -3" alias code="vscodium"