This commit is contained in:
firebadnofire 2024-02-02 12:37:27 -05:00
parent 320e20eec8
commit c1ece89394
Signed by: firebadnofire
GPG Key ID: EF6539F1FA16DEB7
2 changed files with 0 additions and 186 deletions

View File

@ -1,186 +0,0 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="$PATH:/usr/local/go/bin:$HOME/.local/bin:/snap/bin:/usr/games:$HOME/.cargo/bin:/usr/local/cuda/bin:/home/$USER/.dotnet:/usr/local/bin/pip"
export EDITOR="vim"
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_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="geoffgarside"
# 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" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# 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"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git cmdtime)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
export GPG_TTY=$(tty)
export MAIL=~/Maildir
alias f="find . -type f | fzy"
alias starts="sudo systemctl start"
alias stops="sudo systemctl stop"
alias reloads="sudo systemctl reload"
alias stats="sudo systemctl status"
alias restarts="sudo systemctl restart"
alias kills="sudo systemctl kill"
alias sudo='sudo '
alias tp='ping -c 4 google.com'
alias tlp='ping -c 4 192.168.86.1'
alias trp='ping -c 4 8.8.8.8'
alias copy='rsync -ah --progress'
alias cls='clear'
alias nf='neofetch --ascii_distro'
alias port='sudo lsof -i -P -n | grep'
if command -v apt-fast >/dev/null 2>&1; then
alias ins='sudo apt-fast update; sudo apt-fast install'; alias update='sudo apt-fast update'; alias upgrade='sudo apt-fast upgrade'; alias search='apt-fast search'; alias rem='sudo apt-fast purge'; PKGMGR=apt-fast
elif command -v apt >/dev/null 2>&1; then
alias ins='sudo apt update; sudo apt install'; alias update='sudo apt update'; alias upgrade='sudo apt upgrade'; alias search='apt search'; alias rem='sudo apt purge'; PKGMGR=apt
else
sleep 0
fi
if command -v pacman >/dev/null 2>&1; then
alias ins='sudo pacman -S'; alias update='sudo pacman -Syu'; alias upgrade='sudo pacman -Syu'; alias search='pacman -Ss'; alias rem='sudo pacman -Rns'; PKGMGR=pacman
else
sleep 0
fi
if command -v dnf >/dev/null 2>&1; then
alias ins='sudo dnf install'; alias update='sudo dnf update'; alias upgrade='sudo dnf upgrade'; alias search='sudo dnf search'; alias rem='sudo dnf remove'; PKGMGR=dnf
else
sleep 0
fi
if command -v mullvad-exclude >/dev/null 2>&1; then
alias mlex='mullvad-exclude'
else
sleep 0
fi
if command -v pkg >/dev/null 2>&1; then
echo 'Packages to upgrade:'; /usr/sbin/pkg version | grep -v = | wc -l; alias ins='sudo pkg install'; alias update='sudo pkg update'; alias upgrade='sudo pkg upgrade'; alias search='sudo pkg search'; alias rem='sudo pkg delete'; PKGMGR='pkg, freebsd ports'
else
sleep 0
fi
if command -v update-grub &> /dev/null; then
sleep 0
else
# Check if "/boot/grub" directory exists
if [ -d "/boot/grub" ]; then
alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
elif [ -d "/boot/grub2" ]; then
alias update-grub='grub2-mkconfig -o /boot/grub2/grub.cfg'
else
echo "Neither update-grub nor /boot/grub or /boot/grub2 directory found."
fi
fi
w
cat ~/.cow
TZ='America/New_York' date
TZ='UTC' date
date -u +"%a %b %d %H:%M:%S UTC %Y"
if [ -e /dev/rtc0 ]; then
hwc=$(sudo hwclock)
else
hwc="No RTC"
fi
echo "hwclock: $hwc"
stty sane
echo Package manager: $PKGMGR

0
a
View File