mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-25 20:47:45 +01:00
alias: adding monitor and yay standards
I often monitor files that change. Now that can be done with mon. yay now uses its cache way better. Unused scripts for suckless merges were removed, I find it much better to run the commands manually without the scripts as they tend to break more often
This commit is contained in:
parent
2cc00d1790
commit
7fa70beaf2
@ -83,6 +83,10 @@ alias sc="sc-im"
|
||||
# script
|
||||
alias scriptclear="cat typescript | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > typescript-processed"
|
||||
|
||||
# tail
|
||||
|
||||
alias mon="tail -f -n 500"
|
||||
|
||||
# tmux
|
||||
alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
|
||||
|
||||
@ -99,7 +103,7 @@ alias weather="curl wttr.in"
|
||||
alias wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts"
|
||||
|
||||
# yay
|
||||
alias yay="yay --save --sudoloop"
|
||||
alias yay="yay --sudoloop --noredownload --norebuild"
|
||||
|
||||
# youtube-dl
|
||||
alias yta="youtube-dl -f 'bestaudio[ext=m4a]'"
|
||||
|
@ -1,7 +0,0 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# for cleaning up the master branch of a git directory according to my suckless patch structure
|
||||
# e.g. see dwm/st/etc
|
||||
# by uoou, checkout gitlab.com/uoou/dotfiles
|
||||
|
||||
make clean && rm -f config.h && git reset --hard origin/base
|
@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# for showing the diffs to the master branch of a git directory according to my suckless patch structure
|
||||
# e.g. see dwm/st/etc
|
||||
# by uoou, checkout gitlab.com/uoou/dotfiles
|
||||
|
||||
git checkout master &&
|
||||
dotfiles="/home/tiynger/.config/dotfiles/suckless"
|
||||
project=$(basename $(pwd))
|
||||
diffdir="${dotfiles}/${project}_diffs/"
|
||||
olddiffdir="${dotfiles}/${project}_diffs/old/"
|
||||
rm -rf "$olddiffdir" &&
|
||||
mkdir -p "$olddiffdir" &&
|
||||
mkdir -p "$diffdir" &&
|
||||
mv "$diffdir"*.diff "$olddiffdir" || true &&
|
||||
make clean && rm -f config.h && git reset --hard origin/base &&
|
||||
for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | cut -d'/' -f3); do
|
||||
if [ "$branch" != "master" ];then
|
||||
git diff base..$branch > "${diffdir}${project}_${branch}.diff"
|
||||
fi
|
||||
done
|
||||
|
@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# for merging all branches into the master branch of a git directory according to my suckless patch structure
|
||||
# e.g. see dwm/st/etc
|
||||
# by uoou, checkout gitlab.com/uoou/dotfiles
|
||||
|
||||
suckdiff &&
|
||||
git reset --hard origin/base &&
|
||||
for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | cut -d'/' -f3); do
|
||||
if [[ ("$branch" != "master") && ("$branch" != "base") ]];then
|
||||
echo $branch
|
||||
git merge $branch -m $branch
|
||||
fi
|
||||
done
|
||||
make && sudo make clean install
|
||||
|
Loading…
x
Reference in New Issue
Block a user