-
This commit is contained in:
@@ -27,7 +27,7 @@ autospawn = no
|
||||
; daemon-binary = /usr/bin/pulseaudio
|
||||
; extra-arguments = --log-target=syslog
|
||||
|
||||
cookie-file = $HOME/.config/pulse/cookie
|
||||
cookie-file = ~/.config/pulse/cookie
|
||||
|
||||
; enable-shm = yes
|
||||
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
|
||||
|
||||
@@ -7,15 +7,14 @@
|
||||
# Only vars needed by external commands should be exported.
|
||||
# Note that you can export vars w/out assigning a value to them.
|
||||
|
||||
#eval $(keychain --eval --quiet ry_ecdsa)
|
||||
export XDG_CURRENT_DESKTOP=Unity
|
||||
eval $(keychain --eval --quiet ry_ecdsa)
|
||||
eval $(keychain --eval --quiet id_rsa)
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export BROWSER=/usr/bin/qutebrowser
|
||||
export BW_SESSION="yWLHouCQOUDNWXOgK7eX/7lN4hvkqwyyjhfvhKlDwGjJOEpNX6G9dA/FLUqJ+QCpHxnGrVFDhmYjpGPmZZ+cnA=="
|
||||
export XDG_CONFIG_HOME=~/.config
|
||||
export XDG_CACHE_HOME=~/.cache
|
||||
export XDG_DATA_HOME=~/.local/share
|
||||
export XDG_STATE_HOME=~/.config/zsh
|
||||
export EDITOR=vim
|
||||
export PASSWORD_STORE_ENABLE_EXTENSIONS=true
|
||||
export BROWSER=/usr/bin/firefox
|
||||
export VISUAL=vim
|
||||
export EDITOR=vim
|
||||
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
|
||||
|
||||
@@ -1,57 +1,32 @@
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
# Enable colors and change prompt:
|
||||
autoload -U colors && colors # Load colors
|
||||
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
|
||||
setopt autocd # Automatically cd into typed directory.
|
||||
stty stop undef # Disable ctrl-s to freeze terminal.
|
||||
setopt interactive_comments
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH="$HOME/.config/oh-my-zsh"
|
||||
export PATH=$HOME/.config/emacs/bin:$PATH # Doom Path
|
||||
## Exports ##
|
||||
export PATH=$HOME/.local/bin:$PATH
|
||||
export PATH=$HOME/bin:$PATH
|
||||
|
||||
# Set name of the theme to load --- if set to "random", it will
|
||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||
ZSH_THEME="robbyrussell"
|
||||
# Basic auto/tab complete:
|
||||
autoload -U compinit
|
||||
zstyle ':completion:*' menu select
|
||||
zmodload zsh/complist
|
||||
compinit
|
||||
_comp_options+=(globdots) # Include hidden files.
|
||||
|
||||
# Set list of themes to pick from when loading at random
|
||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||
# a theme from this variable instead of looking in $ZSH/themes/
|
||||
# If set to an empty array, this variable will have no effect.
|
||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||
## Paths ##
|
||||
# Scripts Path
|
||||
PATH=$PATH:~/code/scripts
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="true"
|
||||
# Local Bin
|
||||
PATH=$PATH:~/.local/bin
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion.
|
||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
|
||||
# Uncomment one of the following lines to change the auto-update behavior
|
||||
zstyle ':omz:update' mode disabled # disable automatic updates
|
||||
# zstyle ':omz:update' mode auto # update automatically without asking
|
||||
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
# zstyle ':omz:update' frequency 13
|
||||
|
||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||
DISABLE_MAGIC_FUNCTIONS="true"
|
||||
|
||||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
|
||||
plugins=(git)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
#You may need to manually set your language environment
|
||||
export LANG=en_US.UTF-8
|
||||
# Doom Path
|
||||
PATH=$PATH:~/.config/emacs/bin/
|
||||
|
||||
|
||||
ALIAS_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_aliases"
|
||||
FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions"
|
||||
. $ALIAS_LOCATION
|
||||
. $FUNCTION_LOCATION
|
||||
# Load aliases and shortcuts if existent.
|
||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/zsh_aliases" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/zsh_aliases"
|
||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/zsh_functions" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/zsh_functions"
|
||||
|
||||
@@ -1,27 +1,130 @@
|
||||
# ~ DNF ~ #
|
||||
alias install="sudo dnf install"
|
||||
alias remove="sudo dnf remove"
|
||||
alias search="dnf search"
|
||||
alias update="sudo dnf update"
|
||||
#######################################################
|
||||
# ALIAS
|
||||
#######################################################
|
||||
# To temporarily bypass an alias, we preceed the command with a \
|
||||
# EG: the ls command is aliased, but to use the normal ls command you would type \ls
|
||||
|
||||
# ~ Commands ~ #
|
||||
alias ip="ip -c"
|
||||
alias cpv='rsync -ah --info=progress2'
|
||||
alias music-push="rsync -e 'ssh -p 46668' --info=progress2 -r /home/opal/music/to-push/ cleric:/data/container_storage/jellyfin/media/music/to-sort/"
|
||||
|
||||
# ~ Heck the GNU Coreutils ~ #
|
||||
alias ls="exa"
|
||||
alias cat="bat -p"
|
||||
alias df="duf"
|
||||
|
||||
# ~ Derp ~ #
|
||||
alias unmount="umount"
|
||||
alias please="sudo"
|
||||
|
||||
# ~ Source Zsh Configuration ~ #
|
||||
# Source zsh
|
||||
alias zshrcsource="source ~/.config/zsh/.zshrc"
|
||||
|
||||
# ~ Ansible ~ #
|
||||
# Pacman aliases
|
||||
alias install='sudo pacman -S'
|
||||
alias update='sudo pacman -Syu'
|
||||
alias search='pacman -Ss'
|
||||
alias remove='sudo pacman -Rs'
|
||||
alias uninstall='sudo pacman -Rs'
|
||||
|
||||
# ip
|
||||
alias ip="ip -c"
|
||||
|
||||
# Rsync push music to jellyfin
|
||||
alias music-push="rsync -r -e 'ssh -p 46668' --info=progress2 /home/opal/music/to-push/* cleric:/data/container_storage/jellyfin/media/music/to-sort/"
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
|
||||
# alias to show the date
|
||||
alias da='date "+%Y-%m-%d %A %T %Z"'
|
||||
|
||||
# Alias's to modified commands
|
||||
alias cp='cp -i'
|
||||
alias mv='mv -i'
|
||||
alias rm='rm -iv'
|
||||
alias mkdir='mkdir -p'
|
||||
alias ps='ps auxf'
|
||||
alias ping='ping -c 10'
|
||||
alias less='less -R'
|
||||
alias vi='vim'
|
||||
alias vis='vim "+set si"'
|
||||
|
||||
# Change directory aliases
|
||||
alias home='cd ~'
|
||||
alias cd..='cd ..'
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias ....='cd ../../..'
|
||||
alias .....='cd ../../../..'
|
||||
|
||||
# cd into the old directory
|
||||
alias bd='cd "$OLDPWD"'
|
||||
|
||||
# Alias's for multiple directory listing commands
|
||||
alias la='ls -Alh' # show hidden files
|
||||
alias ls='ls -aFh --color=always' # add colors and file type extensions
|
||||
alias lx='ls -lXBh' # sort by extension
|
||||
alias lk='ls -lSrh' # sort by size
|
||||
alias lc='ls -lcrh' # sort by change time
|
||||
alias lu='ls -lurh' # sort by access time
|
||||
alias lr='ls -lRh' # recursive ls
|
||||
alias lt='ls -ltrh' # sort by date
|
||||
alias lm='ls -alh |more' # pipe through 'more'
|
||||
alias lw='ls -xAh' # wide listing format
|
||||
alias ll='ls -Fls' # long listing format
|
||||
alias labc='ls -lap' #alphabetical sort
|
||||
alias ldir="ls -l | egrep '^d'" # directories only
|
||||
|
||||
# Search command line history
|
||||
alias h="history | grep "
|
||||
|
||||
# Search files in the current folder
|
||||
alias f="find . | grep "
|
||||
|
||||
# Count all files (recursively) in the current folder
|
||||
alias countfiles="for t in files links directories; do echo \`find . -type \${t:0:1} | wc -l\` \$t; done 2> /dev/null"
|
||||
|
||||
# Show current network connections to the server
|
||||
alias ipview="netstat -anpl | grep :80 | awk {'print \$5'} | cut -d\":\" -f1 | sort | uniq -c | sort -n | sed -e 's/^ *//' -e 's/ *\$//'"
|
||||
|
||||
# Show open ports
|
||||
alias openports='netstat -nape --inet'
|
||||
|
||||
# Alias's to show disk space and space used in a folder
|
||||
alias diskspace="du -S | sort -n -r |more"
|
||||
alias folders='du -h --max-depth=1'
|
||||
alias folderssort='find . -maxdepth 1 -type d -print0 | xargs -0 du -sk | sort -rn'
|
||||
alias tree='tree -CAhF --dirsfirst'
|
||||
alias treed='tree -CAFd'
|
||||
alias mountedinfo='df -hT'
|
||||
|
||||
# Alias's for archives
|
||||
alias mktar='tar -cvf'
|
||||
alias mkbz2='tar -cvjf'
|
||||
alias mkgz='tar -cvzf'
|
||||
alias untar='tar -xvf'
|
||||
alias unbz2='tar -xvjf'
|
||||
alias ungz='tar -xvzf'
|
||||
|
||||
# Show all logs in /var/log
|
||||
alias logs="sudo find /var/log -type f -exec file {} \; | grep 'text' | cut -d' ' -f1 | sed -e's/:$//g' | grep -v '[0-9]$' | xargs tail -f"
|
||||
|
||||
# SHA1
|
||||
alias sha1='openssl sha1'
|
||||
|
||||
# Wireguard
|
||||
alias wgup='sudo wg-quick up /etc/wireguard/wg0.conf'
|
||||
alias wgdown='sudo wg-quick down /etc/wireguard/wg0.conf'
|
||||
|
||||
# Hugo
|
||||
alias hss='hugo server --noHTTPCache'
|
||||
|
||||
# Work
|
||||
alias stork='ssh stork'
|
||||
alias mail='ssh mail'
|
||||
alias eel='ssh eel'
|
||||
|
||||
# Wget (keeps hsts files out of $HOME)
|
||||
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
||||
|
||||
# vim -> neovim (cuz nvim > vim)
|
||||
alias vim='nvim'
|
||||
|
||||
# Ansible
|
||||
alias ans-run="ansible-playbook site.yml --ask-become-pass"
|
||||
alias ans-run-tag="ansible-playbook site.yml --ask-become-pass --tags"
|
||||
alias ans-run-start="ansible-playbook site.yml --ask-become-pass --start-at-task"
|
||||
|
||||
# Misc
|
||||
alias music-push="rsync -e 'ssh -p 46668' --info=progress2 -r /home/opal/music/to-push/ cleric:/data/container_storage/jellyfin/media/music/to-sort/"
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,5 @@ export PASSWORD_STORE_ENABLE_EXTENSIONS=true
|
||||
export BROWSER=/usr/bin/firefox
|
||||
export VISUAL=vim
|
||||
export EDITOR=vim
|
||||
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
@@ -177,6 +177,12 @@ alias stork='ssh stork'
|
||||
alias mail='ssh mail'
|
||||
alias eel='ssh eel'
|
||||
|
||||
# Wget (keeps hsts files out of $HOME)
|
||||
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
||||
|
||||
# vim -> neovim (cuz nvim > vim)
|
||||
alias vim='nvim'
|
||||
|
||||
# #######################################################
|
||||
# # SPECIAL FUNCTIONS
|
||||
# #######################################################
|
||||
Reference in New Issue
Block a user