1
0
Fork 0

lk jasdfksdaklasdfkljklj sadfk jkl

This commit is contained in:
Arthur K. 2025-01-04 18:47:09 +03:00
parent 0c9b0016c6
commit da50f04f9d
Signed by: wzray
GPG key ID: B97F30FDC4636357
11 changed files with 137 additions and 5 deletions

View file

@ -20,16 +20,26 @@ LC_PAPER="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
# xdg dirs
XDG_DATA_HOME="${HOME}/.local/share"
XDG_CONFIG_HOME="${HOME}/.config"
XDG_STATE_HOME="${HOME}/.local/state"
XDG_CACHE_HOME="${HOME}/.cache"
# default configs
ANDROID_HOME="${HOME}/.local/share/android"
BAT_THEME="TwoDark"
EDITOR="/usr/bin/nvim"
GNUPGHOME='~/.local/share/gnupg'
GOPATH="${HOME}/.local/share/go"
GPG_TTY="$(tty)"
JAVA_HOME="/usr/lib/jvm/java-23-openjdk"
LESS="--wheel-lines 3 --mouse"
MANPAGER="sh -c 'col -bx | bat -l man -p'"
MANROFFOPT="-c"
MTR_OPTIONS="-t"
SSH_ASKPASS="${HOME}/.local/bin/scripts/pinentry-askpass"
SUDO_ASKPASS="${HOME}/.local/bin/scripts/dmenu-askpass"
GRADLE_USER_HOME="${HOME}/.local/share/gradle"
set +a

View file

@ -54,7 +54,7 @@ alias ls="lsd --color=auto"
alias l="ls -lh"
alias la="ls -lah"
alias ll="ls -lh"
alias lt="ls -lt"
alias lt="ls --color=always --icon=always -lt"
# set bat as help pager
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
@ -91,12 +91,14 @@ alias wt="watch --color -d -cn 0.1 "
alias cal="ncal -b"
alias .e="source .env"
alias vimu="vim -u /dev/null"
alias reswap="sudo swapoff /swapfile && sudo swapon /swapfile"
# function aliases
bl() { brightnessctl set "$1"% > /dev/null; }
nosw() { alacritty --class 'noswallow' -e "$@"; }; compdef _command nosw
t() { taskell "${1:-${HOME}/.taskell.md}"; }
vims() { filepath="$(type "$1" | rev | cut -d ' ' -f 1 | rev)"; [ $? -eq 0 ] && vim "${filepath}"; }; compdef _command vims
tl() { tree -C "$@" | bat }; compdef _tree tl
# compdef
compdef -a '_git; _git-commit' gdc # todo
@ -104,25 +106,37 @@ compdef '_files -g "*.md"' md
# git aliases
gl() { git log --decorate "$@" | bat }; compdef '_git; _git-log' gl
gus() { git branch --set-upstream-to="${1:?}/${2:?}" "${2:?}"}; compdef '_git; _git-push' gus
alias ga="git add"
alias gb="git branch"
alias gc="git commit"
alias gca="git commit --amend --no-edit"
alias gck="git checkout"
alias gcl="git clone"
alias gcn="git clean"
alias gcp="git cherry-pick"
alias gd="git diff"
alias gds="gd --staged"
alias gf="git fetch"
alias gi="git init"
alias gla="gl --all"
alias gm="git merge"
alias gp="git push"
alias gpo="git push origin"
alias gpu="git pull"
alias gr="git restore"
alias grb="git rebase"
alias grj="git rebase"
alias grjc="git rebase --continue"
alias grjs="git rebase --cancel"
alias grm="git remote"
alias grs="git restore --staged"
alias grt="git reset"
alias gs="git status"
alias gswc="git switch -c"
alias gsc="git switch -c"
alias gsh="git show"
alias gsp="git stash pop"
alias gsj="git stash"
alias gt="git tag"
# docker aliases
alias dc="docker compose"