Add .files in home dir
This commit is contained in:
parent
86be12e2a6
commit
8ff9e05336
56
.Xresources
Normal file
56
.Xresources
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
! special
|
||||||
|
*.foreground: #dfdfdf
|
||||||
|
*.background: #130314
|
||||||
|
*.border_unfocused: #262323
|
||||||
|
*.border_focused: #353131
|
||||||
|
|
||||||
|
! dwm
|
||||||
|
dwm.normfgcolor: #bbbbbb
|
||||||
|
dwm.normbgcolor: #1b1b1b
|
||||||
|
dwm.normbordercolor: #444444
|
||||||
|
|
||||||
|
dwm.selfgcolor: #eeeeee
|
||||||
|
dwm.selbgcolor: #5e3059
|
||||||
|
dwm.selbordercolor: #05e3059
|
||||||
|
|
||||||
|
! dmenu
|
||||||
|
dmenu.selbackground: #353131
|
||||||
|
dmenu.selforeground: #dfdfdf
|
||||||
|
dmenu.font: Monospace:pixelsize=13:antialias=true:autohint=true:hintstyle=hintmedium
|
||||||
|
|
||||||
|
! st
|
||||||
|
st.font: Monospace:pixelsize=13:antialias=true:autohint=true:hintstyle=hintmedium
|
||||||
|
|
||||||
|
! black
|
||||||
|
*.color0: #000000
|
||||||
|
|
||||||
|
! gray
|
||||||
|
*.color8: #343834
|
||||||
|
|
||||||
|
! red
|
||||||
|
*.color1: #cf5252
|
||||||
|
*.color9: #cf5252
|
||||||
|
|
||||||
|
! green
|
||||||
|
*.color2: #92ad4a
|
||||||
|
*.color10: #92ad4a
|
||||||
|
|
||||||
|
! yellow
|
||||||
|
*.color3: #c9895b
|
||||||
|
*.color11: #c9895b
|
||||||
|
|
||||||
|
! blue
|
||||||
|
*.color4: #6f97b8
|
||||||
|
*.color12: #6f97b8
|
||||||
|
|
||||||
|
! magenta
|
||||||
|
*.color5: #ab6ba6
|
||||||
|
*.color13: #ab6ba6
|
||||||
|
|
||||||
|
! cyan
|
||||||
|
*.color6: #6fa69f
|
||||||
|
*.color14: #6fa69f
|
||||||
|
|
||||||
|
! white
|
||||||
|
*.color7: #cccccc
|
||||||
|
|
1
.bash_profile
Symbolic link
1
.bash_profile
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
.profile
|
21
.bashrc
Normal file
21
.bashrc
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# ██ ██
|
||||||
|
# ░██ ░██
|
||||||
|
# ░██ ██████ ██████░██
|
||||||
|
# ░██████ ░░░░░░██ ██░░░░ ░██████
|
||||||
|
# ░██░░░██ ███████ ░░█████ ░██░░░██
|
||||||
|
# ░██ ░██ ██░░░░██ ░░░░░██░██ ░██
|
||||||
|
# ░██████ ░░████████ ██████ ░██ ░██
|
||||||
|
# ░░░░░ ░░░░░░░░ ░░░░░░ ░░ ░░
|
||||||
|
|
||||||
|
# If not running interactively, don't do anything
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
# Vi mode
|
||||||
|
set -o vi
|
||||||
|
|
||||||
|
# Load global shell config
|
||||||
|
source $HOME/.shellrc
|
||||||
|
|
||||||
|
# Prompt
|
||||||
|
export PS1="\033[0;32m\h\033[0m in \033[0;36m\w\033[0m\n{\033[0;31m${?}\033[0m}\033[0;36m> \033[0m"
|
12
.eslintrc
Normal file
12
.eslintrc
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"parser": "esprima",
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"commonjs": true,
|
||||||
|
"es6": true,
|
||||||
|
"node": false
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"semi": "error"
|
||||||
|
}
|
||||||
|
}
|
34
.profile
Normal file
34
.profile
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# ████ ██ ██
|
||||||
|
# ██████ ░██░ ░░ ░██
|
||||||
|
# ░██░░░██ ██████ ██████ ██████ ██ ░██ █████
|
||||||
|
# ░██ ░██░░██░░█ ██░░░░██░░░██░ ░██ ░██ ██░░░██
|
||||||
|
# ░██████ ░██ ░ ░██ ░██ ░██ ░██ ░██░███████
|
||||||
|
# ░██░░░ ░██ ░██ ░██ ░██ ░██ ░██░██░░░░
|
||||||
|
# ░██ ░███ ░░██████ ░██ ░██ ███░░██████
|
||||||
|
# ░░ ░░░ ░░░░░░ ░░ ░░ ░░░ ░░░░░░
|
||||||
|
|
||||||
|
#~~~~~~~~~~~~~~
|
||||||
|
# Default Apps
|
||||||
|
#~~~~~~~~~~~~~~
|
||||||
|
export EDITOR="nvim"
|
||||||
|
export BROWSER="iceweasel"
|
||||||
|
export TERMINAL="st"
|
||||||
|
|
||||||
|
#~~~~~~
|
||||||
|
# PATH
|
||||||
|
#~~~~~~
|
||||||
|
export GOPATH=$HOME/.local/go
|
||||||
|
|
||||||
|
export NPM_PACKAGES="$HOME/.yarn/bin/"
|
||||||
|
export PATH="$PATH:$HOME/Dotfiles:$HOME/.local/bin:$NPM_PACKAGES:$GOROOT/bin:$GOPATH/bin"
|
||||||
|
|
||||||
|
export SCRD=$HOME/.scripts/
|
||||||
|
|
||||||
|
|
||||||
|
export LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=00;93:do=00;93:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=1;34:st=37;44:ex=01;32:*.tar=01;36:*.tgz=01;36:*.svgz=00;93:*.arj=01;36:*.taz=01;36:*.lzh=01;36:*.lzma=01;36:*.zip=01;36:*.z=01;36:*.Z=01;36:*.dz=01;36:*.gz=01;36:*.bz2=01;36:*.tbz2=01;36:*.bz=01;36:*.tz=01;36:*.deb=01;36:*.rpm=01;36:*.jar=01;36:*.rar=01;36:*.ace=01;36:*.zoo=01;36:*.cpio=01;36:*.7z=01;36:*.rz=01;36:*.jpg=00;93:*.jpeg=00;93:*.gif=00;93:*.bmp=00;93:*.pbm=00;93:*.pgm=00;93:*.ppm=00;93:*.tga=00;93:*.xbm=00;93:*.xpm=00;93:*.tif=00;93:*.tiff=00;93:*.png=00;93:*.mng=00;93:*.pcx=00;93:*.mov=00;93:*.mpg=00;93:*.mpeg=00;93:*.m2v=00;93:*.mkv=00;93:*.ogm=00;93:*.mp4=00;93:*.m4v=00;93:*.mp4v=00;93:*.vob=00;93:*.qt=00;93:*.nuv=00;93:*.wmv=00;93:*.asf=00;93:*.rm=00;93:*.rmvb=00;93:*.flc=00;93:*.avi=00;93:*.fli=00;93:*.gl=00;93:*.dl=00;93:*.xcf=00;93:*.xwd=00;93:*.yuv=00;93:*.svg=00;93:*.aac=00;36:*.au=00;36:*.flac=00;35:*.mid=00;35:*.midi=00;35:*.mka=00;35:*.mp3=00;35:*.mpc=00;35:*.ogg=00;35:*.ra=00;35:*.wav=00;35:*.opus=00;35:"
|
||||||
|
|
||||||
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||||
|
|
||||||
|
export GPG_TTY=$(tty)
|
122
.shellrc
Normal file
122
.shellrc
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
#
|
||||||
|
# ██ ██ ██
|
||||||
|
# ░██ ░██ ░██
|
||||||
|
# ██████░██ █████ ░██ ░██ ██████ █████
|
||||||
|
# ██░░░░ ░██████ ██░░░██ ░██ ░██░░██░░█ ██░░░██
|
||||||
|
# ░░█████ ░██░░░██░███████ ░██ ░██ ░██ ░ ░██ ░░
|
||||||
|
# ░░░░░██░██ ░██░██░░░░ ░██ ░██ ░██ ░██ ██
|
||||||
|
# ██████ ░██ ░██░░██████ ███ ███░███ ░░█████
|
||||||
|
# ░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░░ ░░░░░
|
||||||
|
|
||||||
|
#~~~~~~~~~
|
||||||
|
# General
|
||||||
|
#~~~~~~~~~
|
||||||
|
source "$HOME/.profile"
|
||||||
|
|
||||||
|
#~~~~~~~~~
|
||||||
|
# Aliases
|
||||||
|
#~~~~~~~~~
|
||||||
|
# nvim
|
||||||
|
alias v='nvim'
|
||||||
|
alias vi='nvim'
|
||||||
|
alias vim='nvim'
|
||||||
|
alias nano='nvim'
|
||||||
|
alias emacs='nvim'
|
||||||
|
alias code='nvim'
|
||||||
|
alias suvi='sudo -E nvim'
|
||||||
|
|
||||||
|
# ls / tree
|
||||||
|
alias l='ls'
|
||||||
|
alias ll='ls -l'
|
||||||
|
alias la='ls -a'
|
||||||
|
alias lal='ls -al'
|
||||||
|
alias tr='tree -L 2'
|
||||||
|
|
||||||
|
# package managers
|
||||||
|
alias owo='pacman'
|
||||||
|
alias sowo='sudo pacman'
|
||||||
|
alias yay='yay --editmenu --nodiffmenu --save'
|
||||||
|
alias uwu="yay -Slq | fzf -m --preview 'yay -Si {1}' | yay -S -"
|
||||||
|
|
||||||
|
# youtube-dl
|
||||||
|
alias ytdl-audio='youtube-dl -i -f bestaudio -o "%(title)s.%(ext)s" -4'
|
||||||
|
alias ytdl-opus='youtube-dl -i --extract-audio --audio-format opus -o "%(title)s.%(ext)s" -4'
|
||||||
|
alias yt-video='youtube-dl -f bestvideo -o "%(title)s.%(ext)s" -4'
|
||||||
|
alias yt-thumbnail='youtube-dl --write-thumbnail --skip-download -o "%(title)s.%(ext)s" -4'
|
||||||
|
|
||||||
|
# git
|
||||||
|
alias btw='git --git-dir=$HOME/Develop/biual-dot-conf.git/ --work-tree=$HOME'
|
||||||
|
alias ga='git add'
|
||||||
|
alias gc='git commit -S'
|
||||||
|
alias gp='git push'
|
||||||
|
alias gpom='git push origin master'
|
||||||
|
alias gch='git checkout'
|
||||||
|
alias gl='git log'
|
||||||
|
alias gpu='git pull'
|
||||||
|
alias gs='git status'
|
||||||
|
alias grm='git rm -f'
|
||||||
|
alias gi='git init'
|
||||||
|
|
||||||
|
# github-cli
|
||||||
|
alias gh-rc='gh repo create --public'
|
||||||
|
alias gh-rcp='gh repo create'
|
||||||
|
alias gh-rv='gh repo view'
|
||||||
|
|
||||||
|
# fzf
|
||||||
|
ff() { find ./* -type f | fzf | xargs -r $EDITOR ;}
|
||||||
|
fd() { vifm "$(find ./* -type d | fzf)" ; clear ; }
|
||||||
|
fhd() { find . -type d | fzf | xargs -r $EDITOR ; }
|
||||||
|
fhf() { find . -type f | fzf | xargs -r $EDITOR ; }
|
||||||
|
alias f='ff'
|
||||||
|
alias fa='fhf'
|
||||||
|
|
||||||
|
# other
|
||||||
|
alias s='sudo '
|
||||||
|
alias sudo='sudo '
|
||||||
|
alias pass='keepassxc-cli clip ~/Passwords/keepass.kdbx'
|
||||||
|
alias torrent='transmission-cli'
|
||||||
|
alias ascii='figlet'
|
||||||
|
alias mirrors='sudo reflector --latest 200 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
|
||||||
|
alias copy='xclip -selection clipboard'
|
||||||
|
alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0'
|
||||||
|
alias c256='(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)'
|
||||||
|
alias ...='cd ~/Dotfiles'
|
||||||
|
alias cd..='cd ..'
|
||||||
|
|
||||||
|
# 4fun
|
||||||
|
alias dog='cat'
|
||||||
|
alias nyancat='lolcat'
|
||||||
|
alias woman='man'
|
||||||
|
alias tak='yes'
|
||||||
|
|
||||||
|
#~~~~~~~~~~~~~~~~~
|
||||||
|
# Commands Colors
|
||||||
|
#~~~~~~~~~~~~~~~~~
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias ip='grc ip'
|
||||||
|
alias ping='grc ping'
|
||||||
|
alias ps='grc ps'
|
||||||
|
export SUDO_PROMPT="$(printf "\033[0;31m")[ sudo ]$(printf "\033[0m"): "
|
||||||
|
|
||||||
|
# man
|
||||||
|
man() {
|
||||||
|
LESS_TERMCAP_md=$'\e[01;31m' \
|
||||||
|
LESS_TERMCAP_me=$'\e[0m' \
|
||||||
|
LESS_TERMCAP_se=$'\e[0m' \
|
||||||
|
# LESS_TERMCAP_so=$'\e[01;44;33m' \
|
||||||
|
LESS_TERMCAP_ue=$'\e[0m' \
|
||||||
|
LESS_TERMCAP_us=$'\e[01;32m' \
|
||||||
|
command man "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
# less
|
||||||
|
export LESS=-R
|
||||||
|
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
|
||||||
|
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
|
||||||
|
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
|
||||||
|
#export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
|
||||||
|
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
|
||||||
|
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
|
||||||
|
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
|
||||||
|
|
||||||
|
# vim: ft=sh
|
128
.zshrc
Normal file
128
.zshrc
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
#
|
||||||
|
# ██
|
||||||
|
# ░██
|
||||||
|
# ██████ ██████░██
|
||||||
|
# ░░░░██ ██░░░░ ░██████
|
||||||
|
# ██ ░░█████ ░██░░░██
|
||||||
|
# ██ ░░░░░██░██ ░██
|
||||||
|
# ██████ ██████ ░██ ░██
|
||||||
|
# ░░░░░░ ░░░░░░ ░░ ░░
|
||||||
|
|
||||||
|
#~~~~~~~~~
|
||||||
|
# General
|
||||||
|
#~~~~~~~~~
|
||||||
|
# zsh directory
|
||||||
|
ZDIR="${HOME}/.config/zsh"
|
||||||
|
|
||||||
|
# history
|
||||||
|
SAVEHIST=9999999
|
||||||
|
HISTFILE="${ZDIR}/history"
|
||||||
|
|
||||||
|
# imports
|
||||||
|
source $HOME/.profile
|
||||||
|
source $HOME/.shellrc
|
||||||
|
|
||||||
|
# error message
|
||||||
|
command_not_found_handler() {
|
||||||
|
printf "\nahh shit, command not found\n\033[0;31m(╯°□°)╯︵ ┻━┻\n\n"
|
||||||
|
exit 127
|
||||||
|
}
|
||||||
|
|
||||||
|
# prompt
|
||||||
|
setopt prompt_subst
|
||||||
|
setopt autocd
|
||||||
|
PROMPT='%F{green}%m%f in %B%F{#299b9b}%~%f%b $(git_status)
|
||||||
|
%f%b% {%B%F{red}%?%f%b}%F{#299b9b}%B>%b%f '
|
||||||
|
|
||||||
|
function git_status() {
|
||||||
|
ref=$(git symbolic-ref --quiet --short HEAD 2> /dev/null || git rev-parse --short HEAD 2> /dev/null)
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo -n "on %B%F{magenta}$ref"
|
||||||
|
[[ $(git status --short | wc -l) -ne 0 ]] && echo -n "%F{yellow}*"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# completetion
|
||||||
|
autoload -U compinit
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
setopt complete_aliases
|
||||||
|
|
||||||
|
zstyle ':completion:*' completer _expand _complete _ignored
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
||||||
|
|
||||||
|
# setopt correct
|
||||||
|
zmodload zsh/complist
|
||||||
|
compinit
|
||||||
|
_comp_options+=(globdots)
|
||||||
|
|
||||||
|
#~~~~~~~~~~
|
||||||
|
# Bindings
|
||||||
|
#~~~~~~~~~~
|
||||||
|
# vi mode
|
||||||
|
bindkey -v
|
||||||
|
export KEYTIMEOUT=1
|
||||||
|
|
||||||
|
# cursor change
|
||||||
|
function zle-keymap-select {
|
||||||
|
if [[ ${KEYMAP} == vicmd ]] ||
|
||||||
|
[[ $1 = 'block' ]]; then
|
||||||
|
echo -ne '\e[2 q'
|
||||||
|
elif [[ ${KEYMAP} == main ]] ||
|
||||||
|
[[ ${KEYMAP} == viins ]] ||
|
||||||
|
[[ ${KEYMAP} = '' ]] ||
|
||||||
|
[[ $1 = 'beam' ]]; then
|
||||||
|
echo -ne '\e[6 q'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
zle -N zle-keymap-select
|
||||||
|
|
||||||
|
zle-line-init() {
|
||||||
|
echo -ne "\e[6 q"
|
||||||
|
}
|
||||||
|
|
||||||
|
echo -ne '\e[6 q'
|
||||||
|
preexec() { echo -ne '\e[6 q' ;}
|
||||||
|
|
||||||
|
# other
|
||||||
|
bindkey '^x' clear-screen
|
||||||
|
|
||||||
|
#~~~~~~~~~
|
||||||
|
# Plugins
|
||||||
|
#~~~~~~~~~
|
||||||
|
PDIR="${ZDIR}/plugins"
|
||||||
|
|
||||||
|
# zsh-autosuggestions
|
||||||
|
source "${PDIR}/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||||
|
|
||||||
|
# zsh-syntax-highlighting
|
||||||
|
source "${PDIR}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||||
|
|
||||||
|
ZSH_HIGHLIGHT_STYLES[default]='none'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[unknown-token]='bg=red'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=yellow'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[alias]='fg=cyan'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[builtin]='fg=cyan'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[function]='fg=cyan'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[command]='fg=cyan'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[precommand]='none'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[commandseparator]='none'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=blue'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[path]='none'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[path_prefix]='none'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[path_approx]='fg=yellow'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[globbing]='fg=green'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=green'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=magenta'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=red'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='none'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=red'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=red'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=cyan'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=cyan'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[assign]='none'
|
||||||
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'
|
||||||
|
|
||||||
|
# tetris easter-egg
|
||||||
|
autoload -Uz tetriscurses
|
||||||
|
alias tetris='tetriscurses'
|
Loading…
x
Reference in New Issue
Block a user