Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-09-27 00:39:03 +02:00
parent f89554d807
commit 5e1d243c3e
Signed by: y0rune
GPG Key ID: F204C385F57EB348
3 changed files with 10 additions and 4 deletions

View File

@ -14,7 +14,7 @@
function scanning(){ function scanning(){
EUSCAN=$(euscan --nocolor --quiet "$1") EUSCAN=$(euscan --nocolor --quiet "$1")
if [ -n "$EUSCAN" ]; then 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)" $(echo -e "$EUSCAN" | tail -1)"
fi fi
} }

View File

@ -10,4 +10,4 @@ done
echo echo
read -p 'Select number to show logs: ' NUMBER read -p 'Select number to show logs: ' NUMBER
sudo tail -f ${LOGS[$NUMBER]} | ccze -A sudo tail -f ${LOGS[$NUMBER]}

10
.zshrc
View File

@ -2,6 +2,10 @@ parse_git_branch() {
git symbolic-ref --short HEAD 2> /dev/null 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/gentoo-release ] && export ZSH="/usr/share/zsh/site-contrib/oh-my-zsh"
[ -f /etc/centos-release ] && export ZSH="$HOME/.oh-my-zsh" [ -f /etc/centos-release ] && export ZSH="$HOME/.oh-my-zsh"
[ -f /etc/debian_version ] && 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 changefont="figlet"
alias gmaster="git checkout master" alias gmaster="git checkout master"
alias gcommit="git commit --author='Marcin Woźniak <y0rune@aol.com>' -s" alias gcommit="git commit --author='Marcin Woźniak <y0rune@aol.com>' -s"
alias gcommitwork="git commit --author='Marcin Woźniak <marcin.wozniak@cognifide.com>'" alias gcommitw="git commit --author='Marcin Woźniak <marcin.wozniak@cognifide.com>'"
alias gadd="git add" alias gadd="git add"
alias gpush="git push" alias gpush="git push"
alias gpull="git pull" 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 gfg="git checkout master && git fetch upstream && git pull upstream master"
alias cal="cal -3" alias cal="cal -3"
alias code="vscodium" alias code="vscodium"