sync
This commit is contained in:
parent
f1520da768
commit
c885f79656
|
@ -0,0 +1,3 @@
|
|||
#
|
||||
# ~/.bash_logout
|
||||
#
|
|
@ -0,0 +1,5 @@
|
|||
#
|
||||
# ~/.bash_profile
|
||||
#
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
6
.bashrc
6
.bashrc
|
@ -12,14 +12,10 @@ PS1='\w \$ '
|
|||
|
||||
# aliases
|
||||
if [ -e ~/.bashrc.aliases ] ; then
|
||||
source ~/.bashrc.aliases
|
||||
source ~/.bashrc.aliases
|
||||
fi
|
||||
|
||||
# default applications
|
||||
BROWSER=/usr/bin/firefox
|
||||
EDITOR=/usr/bin/code-oss
|
||||
TERMINAL=/usr/bin/kitty
|
||||
|
||||
# environment variables
|
||||
#MONITOR=DisplayPort-0
|
||||
PATH=$PATH:~/.scripts
|
||||
|
|
|
@ -4,24 +4,27 @@
|
|||
# @zvava@toot.cafe
|
||||
#
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias la='ls -a'
|
||||
|
||||
alias l='sl'
|
||||
|
||||
alias cd..='cd ..'
|
||||
|
||||
alias scrot=$'scrot -mzofq 100 \'%Y-%m-%d_%H%M%S@$a.png\' -e \'mv $f ~/Pictures/Screenshots/\''
|
||||
alias scrap=$'scrot -a $(slop -f %x,%y,%w,%h)'
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias cp='cp -i'
|
||||
alias df='df -h'
|
||||
alias free='free -h'
|
||||
alias pbcopy='xsel --clipboard --input'
|
||||
alias pbpaste='xsel --clipboard --output'
|
||||
alias journalctl='sudo journalctl'
|
||||
alias systemctl='sudo systemctl'
|
||||
alias se='ls /usr/bin | grep'
|
||||
|
||||
alias la='ls -a'
|
||||
alias dir='ls -lh'
|
||||
alias cd..='cd ..'
|
||||
alias l='sl'
|
||||
|
||||
export QT_STYLE_OVERRIDE=gtk
|
||||
export QT_SELECT=qt5
|
||||
|
||||
if [[ $LANG = '' ]]; then
|
||||
export LANG=en_US.UTF-8
|
||||
export LANG=en_US.UTF-8
|
||||
fi
|
||||
|
|
58
.scripts/gud
58
.scripts/gud
|
@ -1,5 +1,43 @@
|
|||
#!/bin/sh
|
||||
# git wrapper (yoinked from mitchweaver/bin)
|
||||
# git wrapper (from mitchweaver/bin)
|
||||
|
||||
# Usage: gud [OPTION] [...]
|
||||
# Git wrapper for Gitting Gudder.
|
||||
#
|
||||
# Arguments (defaults to -s):
|
||||
# -a git add
|
||||
# -m [git add] git commit -m
|
||||
# -o git push -u
|
||||
# -of git push -u --force
|
||||
# -u gud -amo (equivalent to)
|
||||
# -c git clone
|
||||
# -gh git clone (from github)
|
||||
# -p git pull
|
||||
# -pf git pull --force
|
||||
# -d git diff
|
||||
# -s git status
|
||||
# -k git checkout
|
||||
# -kd git push --delete origin
|
||||
# -b git branch
|
||||
# -r git remote add
|
||||
# -rv git remote -v
|
||||
# -i git init
|
||||
# -l git log --source
|
||||
# -f git fetch
|
||||
# -gc git gc
|
||||
# -mv git mv
|
||||
# -rm git rm
|
||||
# --base -bs git rebase -i --hard
|
||||
# --bort -bt git rebase --abort
|
||||
# --reset -rs git reset --hard
|
||||
# --cherry -ch git cherry-pick
|
||||
# --stash -st git stash
|
||||
# --blame -bl git blame
|
||||
# --untracked -un git ls-files --others --exclude-standard
|
||||
# --tmp sets up a temporary git repo that you can push/pull from
|
||||
# your directory. great for backup when working on quick
|
||||
# new ideas / scratchpads.
|
||||
# --help -h displays this help and exits
|
||||
|
||||
msg() { printf "%s\n" "$@" ; }
|
||||
die() { >&2 msg "$@" ; exit 1 ; }
|
||||
|
@ -29,15 +67,15 @@ main() {
|
|||
-gc) shift ; git gc "$@" ;;
|
||||
-mv) shift ; git mv "$@" ;;
|
||||
-rm) shift ; git rm "$@" ;;
|
||||
-base|-bs) shift ; gbase "$@" ;;
|
||||
-bort|-bt) shift ; git rebase --abort "$@" ;;
|
||||
-reset|-rs) shift ; greset "$@" ;;
|
||||
-cherry|-ch) shift ; git cherry-pick "$@" ;;
|
||||
-stash|-st) shift ; git stash "$@" ;;
|
||||
-blame|-bl) shift ; git blame "$@" ;;
|
||||
-untracked|-un) guntracked ;;
|
||||
-tmp) gtmp ;;
|
||||
-h) head -n 40 "$0" | tail -n 31 ;;
|
||||
--base|-bs) shift ; gbase "$@" ;;
|
||||
--bort|-bt) shift ; git rebase --abort "$@" ;;
|
||||
--reset|-rs) shift ; greset "$@" ;;
|
||||
--cherry|-ch) shift ; git cherry-pick "$@" ;;
|
||||
--stash|-st) shift ; git stash "$@" ;;
|
||||
--blame|-bl) shift ; git blame "$@" ;;
|
||||
--untracked|-un) guntracked ;;
|
||||
--tmp) gtmp ;;
|
||||
--help|-h) head -n 40 "$0" | tail -n 37 | sed 's/# //g' ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue