Add macOS-specific files from macOS branch
This commit is contained in:
parent
7cac723651
commit
c32e097ede
@ -0,0 +1,4 @@
|
||||
list=( ${(Q)"${(z)$(<<\EO:list
|
||||
'aspell-dictionaries' 'determine-rebottle-runners' 'postgresql-upgrade-database' 'services'
|
||||
EO:list
|
||||
)}"} )
|
4
zsh-macos/.config/zsh-macos/.zcompcache/brew_casks
Normal file
4
zsh-macos/.config/zsh-macos/.zcompcache/brew_casks
Normal file
File diff suppressed because one or more lines are too long
4
zsh-macos/.config/zsh-macos/.zcompcache/brew_formulae
Normal file
4
zsh-macos/.config/zsh-macos/.zcompcache/brew_formulae
Normal file
File diff suppressed because one or more lines are too long
1983
zsh-macos/.config/zsh-macos/.zcompdump
Normal file
1983
zsh-macos/.config/zsh-macos/.zcompdump
Normal file
File diff suppressed because it is too large
Load Diff
1
zsh-macos/.config/zsh-macos/.zprofile
Executable file
1
zsh-macos/.config/zsh-macos/.zprofile
Executable file
@ -0,0 +1 @@
|
||||
emulate sh -c 'source /etc/profile'
|
465
zsh-macos/.config/zsh-macos/.zsh_history
Normal file
465
zsh-macos/.config/zsh-macos/.zsh_history
Normal file
@ -0,0 +1,465 @@
|
||||
mv nvim .nvim
|
||||
stow nvim
|
||||
cd .config/nvim
|
||||
rm nvim
|
||||
rm -rf *
|
||||
stow nvim neomutt zsh
|
||||
pacman -Ss nvimpager
|
||||
cat /etc/envir
|
||||
cat /etc/environment
|
||||
cd .config/zsh
|
||||
gco -b macos
|
||||
man git
|
||||
\man git
|
||||
git branch -m m
|
||||
git branch -m macOS
|
||||
rg -H nvimpager
|
||||
nvim -h nvimpager
|
||||
brew unlink coreutils && brew link coreutils
|
||||
gman gls
|
||||
man gls
|
||||
bash
|
||||
man man
|
||||
echo $-
|
||||
nvimpage
|
||||
\ ls -l
|
||||
\ls -l
|
||||
rg nvimpager
|
||||
which rg
|
||||
rg -h
|
||||
rg -i nvim
|
||||
rg man
|
||||
\man ls
|
||||
pacman -Ss coreutils
|
||||
brew link coreutils
|
||||
which rm
|
||||
pacman -Ss safe-rm
|
||||
pacman -S safe-rm
|
||||
pacman -Ql fzf
|
||||
pacman -Ql coreutils
|
||||
pacman -Ql coreutils | sort
|
||||
less -h
|
||||
less --help
|
||||
which less
|
||||
less -i
|
||||
which gless
|
||||
gless
|
||||
pacman -Ql coreutils | sort | less
|
||||
pacman -Ql coreutils | sort | rg less
|
||||
git status
|
||||
which ls
|
||||
cd Programming/cs311/In\ Class\ Exercises
|
||||
git branch lst
|
||||
git branch list
|
||||
git branch -d list
|
||||
git branch -d lst
|
||||
git branch -l
|
||||
rg mkcd
|
||||
rg -H mkcd
|
||||
man zshaliases
|
||||
which date
|
||||
which gdate
|
||||
rm ssh-login.zsh
|
||||
gco master
|
||||
rg --hidden mkcd
|
||||
rg --hidden mkcd()
|
||||
rg --hidden 'mkcd()'
|
||||
sudo chown etorres:staff .cache
|
||||
sudo chown -R etorres:staff .cache
|
||||
rg --hidden -i 'mkcd()'
|
||||
rg -i mkcd
|
||||
rg -i mkcd **/*
|
||||
\man rg
|
||||
PAGER=""
|
||||
rg -i 'mkcd()' **/*
|
||||
cd Pack
|
||||
which gmkdir
|
||||
cd /etc/zsh
|
||||
cd /etc
|
||||
fd zsh
|
||||
< zshrc
|
||||
rg mkcd zshrc
|
||||
rg mkcd zsh*
|
||||
which mkcd
|
||||
rg '||'
|
||||
rg '||' **/*
|
||||
PAGER=''
|
||||
man rg
|
||||
rg --follow mkcd
|
||||
rg --follow --hidden mkcd **/*
|
||||
mkcd
|
||||
mkcd hi
|
||||
rmdir hi
|
||||
mkcd Packages
|
||||
git clone https://github.com/lucc/nvimpager.git
|
||||
cd nvimpager
|
||||
pacman -Ss scdoc
|
||||
pacman -Ss busted
|
||||
pacman -S scdoc
|
||||
make PREFIX=$HOME/.local install
|
||||
nvimpager
|
||||
datadir
|
||||
cd .local/bin
|
||||
echo $path
|
||||
zpath
|
||||
which nvimpager
|
||||
man ls
|
||||
zshrc
|
||||
ssh empress
|
||||
cd Programming
|
||||
cd cs311
|
||||
cd Public
|
||||
cd Drop\ Box
|
||||
cd .ssh
|
||||
cd Dco
|
||||
scp -R Programming xenon:/home/etorres
|
||||
scp -R Programming xenon:/home/etorres/Programming
|
||||
scp --help
|
||||
which scp
|
||||
scp -h
|
||||
man scp
|
||||
scp -r Programming xenon:/home/etorres/Programming
|
||||
pacman -Ss topgrade
|
||||
pacman -S topgrade
|
||||
cd Programming/cs311/assignment1
|
||||
rm EricTorresA1.cpp
|
||||
> EricTorresA1.cpp
|
||||
>! EricTorresA1.cpp
|
||||
< EricTorresA1.cpp
|
||||
g++ EricTorresA1.cpp
|
||||
nvim EricTorresA1.cpp
|
||||
mkcd assignment2
|
||||
nvim EricTorresA2.cpp
|
||||
../cs211
|
||||
rg template
|
||||
whoami
|
||||
security find-generic-password -ga eeromeshmc | rg 'password:'
|
||||
cd assignment2
|
||||
git checkout macOS
|
||||
gc -a -m 'Adapt zsh config for macOS'
|
||||
git push --set-upstream origin macOS
|
||||
ga zsh
|
||||
gc -m 'Fix unmatched quote'
|
||||
git tag
|
||||
git tag --list
|
||||
scp -r Programming xenon:/home/etorres/
|
||||
scp -r assignment2 xenon:/home/etorres/Programming/cs311
|
||||
fd factors
|
||||
calcf
|
||||
./calcfactors.py
|
||||
./calcfactors.py -h
|
||||
nvim calcfactors.py
|
||||
./calcfactors.py 61
|
||||
./calcfactors.py 63
|
||||
cd .config/zsh/conf.d
|
||||
git pull
|
||||
cd dist
|
||||
rm -rf dist
|
||||
rm -rf .pytest_cache
|
||||
nvim file-scripts.rb
|
||||
brew install ./file-scripts.rb
|
||||
fedit -h
|
||||
time fedit
|
||||
quickdel
|
||||
ssh xenon
|
||||
ping 192.168.1.3
|
||||
systemctl status
|
||||
ssh xenon-remote
|
||||
tmux
|
||||
pacman -Ss logitech
|
||||
pacman -S logitech-gaming-software
|
||||
myip
|
||||
cd ttf-kriswriting
|
||||
mkcd superscan
|
||||
rmdir superscan
|
||||
cd /Users
|
||||
pacman -Ss kate
|
||||
cd Documents/xenon/Scripts
|
||||
quickdel xenon
|
||||
quickdel -h
|
||||
quickdel x
|
||||
cd Projects/file-scripts
|
||||
/bin/bash --version
|
||||
which bash
|
||||
env bash --version
|
||||
pacman -Ss bash
|
||||
cd Projects
|
||||
git pull https://github.com/etorres4/aurpy.git
|
||||
git pull github.com/etorres4/aurpy.git
|
||||
git pull git@github.com:etorres4/aurpy.git
|
||||
git clone https://github.com/etorres4/aurpy.git
|
||||
cd aurpy
|
||||
pacman -Qi mac-mouse-fix
|
||||
pacman -Ss mouse fix
|
||||
pacman -Qi mouse-fix
|
||||
fd mouse
|
||||
fd logitech
|
||||
pacman -Ql
|
||||
pacman -R mouse-fix
|
||||
pacman -S mouse-fix
|
||||
brew outdated
|
||||
xcode-select --install
|
||||
sudo xcode-select --install
|
||||
cd /usr/lib
|
||||
fd tclConfig
|
||||
xcode-select --version
|
||||
pacman -Syu
|
||||
which python
|
||||
python --version
|
||||
python2
|
||||
cd /usr/local/bin
|
||||
fd python
|
||||
python3
|
||||
pacman -Qi python@3.11
|
||||
brew link python@3.11
|
||||
brew unlink python@3.11 && brew link python@3.11
|
||||
python
|
||||
python3.11
|
||||
cd Scripts/macOS\ Helpers
|
||||
sudo ./post_macos_update.sh
|
||||
which pacsearch
|
||||
pacsearch draw
|
||||
pacman -S drawio
|
||||
ping studentaid.gov
|
||||
getwifipassword
|
||||
echo 'lP+0dw8J/AUuOcFQS41HLA==' | base32
|
||||
echo 'lP+0dw8J/AUuOcFQS41HLA==' | base64
|
||||
zconf
|
||||
fzf --version
|
||||
nvim fzf.zsh
|
||||
cd .gem/ruby/2.6.0/extensions/universal-darwin-22/2.6.0/openssl-3.0.1
|
||||
nvim mkmf.log
|
||||
touch fd_ignore
|
||||
cf assignemnt4
|
||||
fd
|
||||
fd -h
|
||||
fd clang
|
||||
fd -H clang
|
||||
pacsearch uncrustify
|
||||
pacman -S uncrustify
|
||||
man uncrustify
|
||||
rgenv uncrustify
|
||||
> uncrustify.conf
|
||||
uncrustify -h
|
||||
uncrustify -c ~/.config/uncrustify.conf -f TorresEricA4.cpp
|
||||
rm uncrustify.conf
|
||||
touch uncrustify.conf
|
||||
sudo gdb -tui a.out
|
||||
gdb
|
||||
gdb a.out
|
||||
cd Scripts
|
||||
cd macOS\ Helpers
|
||||
chmod 700 codesign-gdb.sh
|
||||
./codesign-gdb.sh
|
||||
man 8 taskgated
|
||||
nvim codesign-gdb.sh
|
||||
mkcd uncrustify
|
||||
mkcd.cnofig
|
||||
mkcd .config
|
||||
stow uncrustify
|
||||
cd uncrustify/.config
|
||||
mv ~/.config/uncrustify.conf .
|
||||
which mv
|
||||
which safe-rm
|
||||
gdb -tui a.out
|
||||
g++ -g TorresEricA4.cpp
|
||||
./a.out
|
||||
which gmv
|
||||
cd uncrustify
|
||||
stow-config
|
||||
which stow-config
|
||||
rm -rf uncrustify
|
||||
zshaliases
|
||||
cd Programming/cs311
|
||||
rm -rf assignment*
|
||||
mkcd assignment4
|
||||
nvim TorresEricA4.cpp
|
||||
nvimplug
|
||||
uncrustify
|
||||
zshenv config
|
||||
rgenv config
|
||||
rgenv unc
|
||||
which mkdir
|
||||
gmkdir -h
|
||||
gmkdir --help
|
||||
zshenv
|
||||
mkdir uncrustify
|
||||
mv uncrustify.conf uncrustify
|
||||
cd -
|
||||
stow-config uncrustify
|
||||
ll uncrustify
|
||||
gd
|
||||
..
|
||||
uncrustify --version
|
||||
uncrustify -f TorresEricA4.cpp
|
||||
g++ TorresEricA4.cpp
|
||||
ga uncrustify
|
||||
git revert uncrustify
|
||||
git reset uncrustify
|
||||
dotfiles
|
||||
ls -l
|
||||
git mv zsh zsh-macos
|
||||
la
|
||||
.s
|
||||
stow zsh-macos
|
||||
stow -h
|
||||
stow --verbose zsh-macos
|
||||
stow .. zsh-macos
|
||||
stow zsh-macos ~
|
||||
xch
|
||||
cd Templates
|
||||
cd etc
|
||||
nvim zshenv
|
||||
nvim zsh/zshenv
|
||||
sudo -e /private/etc/zshenv
|
||||
rm zsh-macos
|
||||
stow -v zsh-macos
|
||||
cd zsh-macos
|
||||
tree zsh
|
||||
tree zsh-macos
|
||||
mv zsh/.* zsh-macos
|
||||
cd zsh
|
||||
mv conf.d ../zsh-macos
|
||||
ls -la
|
||||
rmdir zsh
|
||||
cd ..
|
||||
cd .cnfog
|
||||
cd .config
|
||||
ls -l
|
||||
rm zsh
|
||||
cd Dotfiles
|
||||
grm zsh
|
||||
grm -r zsh
|
||||
ga zsh-macos
|
||||
gc -m 'Rename zsh folder to zsh-macos to avoid naming collision with master'
|
||||
git push
|
||||
gs
|
||||
exi
|
||||
which clang++
|
||||
lldb -h
|
||||
which tty
|
||||
cf assignment4
|
||||
cd
|
||||
tty
|
||||
tty --help
|
||||
tty -s
|
||||
tty -h
|
||||
env
|
||||
sha256sum mt86plus64.iso
|
||||
sha256sum mt86plus_6.00_64.iso.zip
|
||||
md5sum mt86plus_6.00_64.iso.zip
|
||||
cd Downloads
|
||||
ll
|
||||
sha256sum archlinux-2022.12.01-x86_64.iso
|
||||
topgrade
|
||||
nvim
|
||||
cat hosts.txt
|
||||
ls
|
||||
nvim hosts.txt
|
||||
ssh-keygen -t ed25519
|
||||
ssh-copy-id etorres@krypton
|
||||
ssh-copy-id etorres@krypton .ssh/krypton
|
||||
ssh-copy-id -i .ssh/krypton -p 2654 etorres@krypton
|
||||
man nmcli
|
||||
ssh krypton
|
||||
nvim serversetup.txt
|
||||
sshconf
|
||||
sshconfig
|
||||
exit
|
||||
uname -r
|
||||
uname
|
||||
which uname
|
||||
cd Dotfiles
|
||||
ls -l
|
||||
gco macOS
|
||||
git checkout macOS
|
||||
git push
|
||||
git status
|
||||
zsh
|
||||
cd zsh-linux
|
||||
ls -l
|
||||
ls -l
|
||||
pwd
|
||||
cd conf.d
|
||||
ls -l
|
||||
ls -la
|
||||
cd .config/zsh-linux
|
||||
ls -l
|
||||
ls -l
|
||||
cd conf.d
|
||||
ls -l
|
||||
uname
|
||||
uname -h
|
||||
uname --help
|
||||
man uname
|
||||
pwd
|
||||
..
|
||||
..
|
||||
cd ..
|
||||
cd ...
|
||||
cd ..
|
||||
cd ..
|
||||
ls -l
|
||||
cd ..
|
||||
cd zsh
|
||||
cd .config/zsh
|
||||
ls -la
|
||||
git branch
|
||||
git mv .zprofile .zshenv ~/Dotfiles/zsh-linux/.config/zsh
|
||||
git mv .zprofile .zshenv ~/Dotfiles/zsh-linux/.config/zsh-linux
|
||||
git rm .zprofile .zshenv
|
||||
git rm -f .zprofile .zshenv
|
||||
pwd
|
||||
cd ../../..
|
||||
ls -l
|
||||
cd zsh-linux
|
||||
ls -l
|
||||
cd .config/
|
||||
ls -l
|
||||
cd zsh-linux
|
||||
ls -l
|
||||
ls -l
|
||||
ls -la
|
||||
nvim .zshenv
|
||||
ls
|
||||
lcd
|
||||
cd
|
||||
cd Dotfiles/zsh-macos
|
||||
ls -l
|
||||
pwd
|
||||
cd .config
|
||||
ls
|
||||
cd zsh-macos
|
||||
ls
|
||||
la
|
||||
ls -la
|
||||
nvim .zshrc
|
||||
rm .zshrc
|
||||
cd conf.d
|
||||
ls
|
||||
ls -l
|
||||
rm completion.zsh kp.zsh prompt.zsh sudo.zsh tmux.zsh
|
||||
ls -l
|
||||
ls -l
|
||||
nvim 00-aliases.zsh
|
||||
ls
|
||||
ls -l
|
||||
nvim options
|
||||
cat options
|
||||
pwd
|
||||
cat options
|
||||
pwd
|
||||
cd
|
||||
cd Dotfiles/zsh-macos/.config/zsh-macos/conf.d
|
||||
rm options
|
||||
ls -l
|
||||
pwd
|
||||
rm completion.zsh kp prompt.zsh sudo.zsh
|
||||
rm kp.zsh
|
||||
ls -l
|
||||
rm tmux.zsh
|
||||
ls -l
|
||||
rm 00-keybindings.zsh
|
||||
cd
|
||||
pwd
|
||||
exit
|
34
zsh-macos/.config/zsh-macos/.zshenv
Executable file
34
zsh-macos/.config/zsh-macos/.zshenv
Executable file
@ -0,0 +1,34 @@
|
||||
# Local Environment Variables
|
||||
#export SSH_ASKPASS='/usr/bin/ksshaskpass ssh-add < /dev/null'
|
||||
|
||||
#export FZF_DEFAULT_COMMAND="fd --threads $(nproc) --type f --hidden --color=never"
|
||||
|
||||
# XDG Base Directory Support
|
||||
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
|
||||
export GNUPGHOME="${XDG_DATA_HOME}/gnupg"
|
||||
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc"
|
||||
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/.config}/java"
|
||||
export KDEHOME="${XDG_CONFIG_HOME}/kde"
|
||||
export LESSHISTFILE="${XDG_CACHE_HOME}/less/history"
|
||||
export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/password-store"
|
||||
export PYLINT_HOME="${XDG_CACHE_HOME}/pylint"
|
||||
export PYTHON_EGG_CACHE="${XDG_CACHE_HOME}/python-eggs"
|
||||
export PYTHON_STARTUP="${XDG_CONFIG_HOME}/python/pythonrc"
|
||||
export UNCRUSTIFY_CONFIG="${XDG_CONFIG_HOME}/uncrustify/uncrustify.conf"
|
||||
export WINEPREFIX="${XDG_DATA_HOME}/wine"
|
||||
|
||||
# nnn
|
||||
#export NNN_OPTS_PROG=1
|
||||
#export NNN_TRASH=1
|
||||
#export NNN_USE_EDITOR=1
|
||||
|
||||
#export HOMEBREW_NO_AUTO_UPDATE=1
|
||||
|
||||
#export LD_LIBRARY_PATH="/Library/Developer/CommandLineTools/usr/lib/:$LD_LIBRARY_PATH"
|
||||
|
||||
export PAGER="nvimpager"
|
||||
export AUR_PAGER="ranger"
|
||||
|
||||
# Manpager using vim/nvim
|
||||
#export MANPAGER='nvim +Man!'
|
||||
#export MANWIDTH=999
|
65
zsh-macos/.config/zsh-macos/.zshrc
Executable file
65
zsh-macos/.config/zsh-macos/.zshrc
Executable file
@ -0,0 +1,65 @@
|
||||
# User-specific zsh configuration
|
||||
|
||||
# Default umask value
|
||||
umask 0027
|
||||
|
||||
# ========== Functions ==========
|
||||
# Fuzzy-find a file and open it in less
|
||||
_run_fless() {
|
||||
fless && zle reset-prompt
|
||||
}
|
||||
|
||||
zle -N _run_fless
|
||||
bindkey -M viins '^n' _run_fless
|
||||
|
||||
# Fuzzy find a file and then edit it
|
||||
|
||||
_run_fedit() {
|
||||
fedit && zle reset-prompt
|
||||
}
|
||||
|
||||
_run_etcedit() {
|
||||
fedit --etc && zle reset-prompt
|
||||
}
|
||||
|
||||
zle -N _run_fedit
|
||||
bindkey -M viins '^o' _run_fedit
|
||||
|
||||
zle -N _run_etcedit
|
||||
bindkey -M viins '^e' _run_etcedit
|
||||
|
||||
# Fuzzy cd from anywhere
|
||||
# Dependencies
|
||||
# * fzf
|
||||
# * mlocate
|
||||
|
||||
cf() {
|
||||
[[ -z "${*}" ]] && return 1
|
||||
[[ ! -x $(which fzf) ]] && return 1
|
||||
|
||||
#dir="$(locate --all --ignore-case --null -- "${@}" | fzf --read0 --select-1 --exit-0)"
|
||||
#dir="$(locate -0i -- "${@}" | fzf --read0 --select-1 --exit-0)"
|
||||
dir="$(fd --ignore-file "${XDG_CONFIG_HOME}/fd_ignore" --print0 --type d -- "${@}" | fzf --read0 --select-1 --exit-0)"
|
||||
|
||||
[[ -z "${dir}" ]] && return 1
|
||||
|
||||
if [[ -f "${dir}" ]]; then
|
||||
cd "${dir%/*}"
|
||||
else
|
||||
cd "${dir}"
|
||||
fi
|
||||
}
|
||||
|
||||
autoload -Uz cf
|
||||
|
||||
# Make a directory, then change into it
|
||||
|
||||
mkcd() {
|
||||
[[ ! -d "${1}" ]] && gmkdir --parents -- "${1}"
|
||||
cd "${1}" || exit
|
||||
}
|
||||
|
||||
autoload -Uz mkcd
|
||||
|
||||
[ -f "${ZDOTDIR}/conf.d/fzf.zsh" ] && source "${ZDOTDIR}/conf.d/fzf.zsh"
|
||||
test -e /Users/etorres/.config/zsh/.iterm2_shell_integration.zsh && source /Users/etorres/.config/zsh/.iterm2_shell_integration.zsh || true
|
158
zsh-macos/.config/zsh-macos/conf.d/00-aliases.zsh
Normal file
158
zsh-macos/.config/zsh-macos/conf.d/00-aliases.zsh
Normal file
@ -0,0 +1,158 @@
|
||||
# ---------- Normal Aliases ----------
|
||||
# Common commands
|
||||
alias cp='gcp -piv'
|
||||
alias mkdir='gmkdir'
|
||||
alias mv='gmv -iv'
|
||||
# Use safe-rm instead of rm
|
||||
alias rm='safe-rm -iv'
|
||||
alias rmdir='grmdir -v'
|
||||
|
||||
# Games
|
||||
alias add-modrinth='ferium add-modrinth'
|
||||
|
||||
# Git
|
||||
alias gar='git archive'
|
||||
alias gb='git branch'
|
||||
alias gd='git diff'
|
||||
alias ga='git add'
|
||||
alias gc='git commit'
|
||||
alias gca='git commit -a'
|
||||
alias gco='git checkout'
|
||||
alias gconf='${EDITOR} -- "${XDG_CONFIG_HOME:-${HOME}/.config}/git/config"'
|
||||
#alias gmv='git mv'
|
||||
alias grm='git rm'
|
||||
alias gs='git status'
|
||||
alias gtv='printf "%s" "$(git describe --long | sed "s/\([^-]*-\)g/r\1/;s/-/./g")"'
|
||||
alias gnv='printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"'
|
||||
alias gr='git reset'
|
||||
|
||||
# GPG
|
||||
alias gdk='gpg --delete-keys'
|
||||
alias gdsk='gpg --delete-secret-keys'
|
||||
alias gik='gpg --import '
|
||||
alias gk='gpg --list-keys'
|
||||
alias grk='gpg --receive-keys'
|
||||
alias gsk='gpg --list-secret-keys'
|
||||
|
||||
# Neomutt
|
||||
alias neomuttconf='cd -- ${XDG_CONFIG_HOME:-${HOME}/.config}/neomutt'
|
||||
alias neomuttrc='${EDITOR} ${XDG_CONFIG_HOME:-${HOME}/.config}/neomutt/neomuttrc'
|
||||
|
||||
# Neovim
|
||||
alias nvimcomm='${EDITOR} ${XDG_CONFIG_HOME:-${HOME}/.config}/nvim/commands'
|
||||
alias nvimconf='cd "${XDG_CONFIG_HOME:-${HOME}/.config}/nvim"'
|
||||
alias nvimft='cd "${XDG_DATA_HOME:-${HOME}/.local/share}/nvim/site/ftplugin"'
|
||||
alias nvimplug='${EDITOR} -- "${XDG_CONFIG_HOME:-${HOME}/.config}/nvim/plugins.vim"'
|
||||
alias nvimkey='${EDITOR} -- "${XDG_CONFIG_HOME:-${HOME}/.config}/nvim/keybindings.vim"'
|
||||
alias nvimrc='${EDITOR} -- "${XDG_CONFIG_HOME:-${HOME}/.config}/nvim/init.vim"'
|
||||
alias swapdir='cd -- "${XDG_DATA_HOME:-${HOME}/.local/share}/nvim/swap"'
|
||||
alias vmore='nvim -u "${XDG_CONFIG_HOME:-${HOME}/.config}/nvim/pager.vim" -'
|
||||
|
||||
#========= Package Management =========
|
||||
# Arch Linux
|
||||
alias aurget='aur sync -d aur'
|
||||
alias -g autoremove='pacman -Rns $(pacman -Qtdq)'
|
||||
alias checkaurupdates='aur sync -d aur --upgrades'
|
||||
# alias does not work correctly for some reason
|
||||
alias lspkg="pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h"
|
||||
alias ql='pacman -Qql'
|
||||
alias pacsearch='pacman -Ss'
|
||||
alias rpmget='aur sync -d rpm'
|
||||
alias -g updatemirrors="reflector --verbose --country 'United States' --latest 20 --age 24 --sort rate --save /etc/pacman.d/mirrorlist"
|
||||
|
||||
# ========== Packaging ==========
|
||||
# Arch Linux
|
||||
alias aurcache='cd ${XDG_CACHE_HOME}/aurutils/sync'
|
||||
alias aurdir='cd /var/cache/pacman/aur'
|
||||
alias customdir='cd /var/cache/pacman/custom'
|
||||
alias gpkginit='cp /usr/share/pacman/PKGBUILD-vcs.proto ./PKGBUILD'
|
||||
alias pkginit='cp /usr/share/pacman/PKGBUILD.proto ./PKGBUILD'
|
||||
alias pa='makepkg --force --clean --cleanbuild --syncdeps --rmdeps && addpkg aur'
|
||||
alias pc='makepkg --force --clean --cleanbuild --syncdeps --rmdeps && addpkg custom'
|
||||
alias pr='makepkg --force --clean --cleanbuild --syncdeps --rmdeps && addpkg rpm'
|
||||
|
||||
# Personal
|
||||
alias :q='exit'
|
||||
alias ct='cptemplate'
|
||||
#alias less='less -i --'
|
||||
alias la='gls --almost-all --color --group-directories-first --human-readable -l'
|
||||
alias ls='gls --color --group-directories-first'
|
||||
alias ll='gls --classify --color --group-directories-first --human-readable -l'
|
||||
alias python='python3'
|
||||
alias spcli='speedtest-cli --secure'
|
||||
alias sshconfig='"${EDITOR}" -- ${HOME}/.ssh/config'
|
||||
alias tmux='tmux -f "${XDG_CONFIG_HOME:-${HOME}/.config}"/tmux/tmux.conf'
|
||||
alias tmuxrc='nvim -- "${XDG_CONFIG_HOME:-${HOME}/.config}"/tmux/tmux.conf'
|
||||
alias tuir='tuir --no-flash'
|
||||
alias wget='wget --hsts-file="${XDG_DATA_HOME}/wget-hsts"'
|
||||
|
||||
# Navigation
|
||||
alias dirconf='"${EDITOR}" -- "${XDG_CONFIG_HOME:-${HOME}/.config}/user-dirs.dirs"'
|
||||
alias dotfiles='cd "${HOME}/Dotfiles"'
|
||||
alias xch='cd -- ${XDG_CONFIG_HOME:-${HOME}/.config}'
|
||||
alias xcah='cd -- ${XDG_CACHE_HOME:-${HOME}/.cache}'
|
||||
alias xdh='cd -- ${XDG_DATA_HOME:-${HOME}/.local/share}'
|
||||
|
||||
# Programming
|
||||
# Use python-pytest-xdist plugin
|
||||
#alias pytest='pytest --numprocesses=$(nproc)'
|
||||
alias pyarchive='git archive -o rbackup-"$(python setup.py --version)".tar.gz --prefix=rbackup-"$(python setup.py --version)"/'
|
||||
|
||||
# ssh
|
||||
alias scpe='scp -i "${HOME}/.ssh/empress"'
|
||||
|
||||
# system
|
||||
alias bootloader='cd /boot/loader/entries'
|
||||
alias myip='curl ifconfig.me'
|
||||
alias restartfans='sudo systemctl restart fancontrol.service'
|
||||
|
||||
# zsh
|
||||
alias zdotdir='cd -- ${ZDOTDIR:-${HOME}/.zsh}'
|
||||
alias zshaliases='${EDITOR} -- ${ZDOTDIR:-${HOME}/.zsh}/conf.d/00-aliases.zsh'
|
||||
alias zbindings='${EDITOR} -- ${ZDOTDIR:-${HOME}/.zsh}/conf.d/keybindings.zsh'
|
||||
alias zconf='cd -- ${ZDOTDIR:-${HOME}/.zsh}/conf.d'
|
||||
alias zfuncs='cd -- ${ZDOTDIR:-${HOME}/.zsh}/conf.d/functions'
|
||||
alias zhist='${EDITOR} -- ${HISTFILE}'
|
||||
alias zmod='cd -- ${ZDOTDIR:-${HOME}/.zsh}/conf.d/modules'
|
||||
alias zpath='${EDITOR} -- ${ZDOTDIR:-${HOME}/.zsh}/conf.d/path.zsh'
|
||||
alias zprompt='${EDITOR} -- ${ZDOTDIR:-${HOME}/.zsh}/conf.d/prompt.zsh'
|
||||
alias zshrc='${EDITOR} -- ${ZDOTDIR:-${HOME}/.zsh}/.zshrc'
|
||||
alias zshrefresh='source -- ${ZDOTDIR:-${HOME}/.zsh}/.zshrc'
|
||||
alias zshenv='${EDITOR} -- ${ZDOTDIR:-${HOME}/.zsh}/.zshenv'
|
||||
|
||||
# ---------- Parameterized Aliases ----------
|
||||
lsbin() {
|
||||
if [[ -n $1 ]]; then
|
||||
pacman -Qql $1 | rg bin
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
rgenv () {
|
||||
if [[ -n $1 ]]; then
|
||||
env | rg --ignore-case $1
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
stow-config () {
|
||||
local dotfile_dir="${HOME}/Dotfiles"
|
||||
|
||||
for conf in "${@}"; do
|
||||
if [[ -n ${conf} ]]; then
|
||||
mkdir --parents "${dotfile_dir}/${conf}/.config"
|
||||
mv "${XDG_CONFIG_HOME}/${conf}" "${dotfile_dir}/${conf}/.config"
|
||||
cd "${dotfile_dir}" && stow "${conf}"
|
||||
cd -
|
||||
else
|
||||
continue
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
getwifipassword() {
|
||||
security find-generic-password -ga "$1" | rg "password"
|
||||
}
|
||||
|
10
zsh-macos/.config/zsh-macos/conf.d/fzf.zsh
Normal file
10
zsh-macos/.config/zsh-macos/conf.d/fzf.zsh
Normal file
@ -0,0 +1,10 @@
|
||||
# Setup fzf
|
||||
# ---------
|
||||
|
||||
# Auto-completion
|
||||
# ---------------
|
||||
[[ $- == *i* ]] && source "/usr/local/Cellar/fzf/0.35.1/shell/completion.zsh"
|
||||
|
||||
# Key bindings
|
||||
# ------------
|
||||
source "/usr/local/Cellar/fzf/0.35.1/shell/key-bindings.zsh"
|
4
zsh-macos/.config/zsh-macos/conf.d/path.zsh
Normal file
4
zsh-macos/.config/zsh-macos/conf.d/path.zsh
Normal file
@ -0,0 +1,4 @@
|
||||
# PATH variable configuration
|
||||
path=("${HOME}/Scripts/macOS Helpers" "${HOME}/.local/bin" $path)
|
||||
|
||||
export PATH
|
Loading…
x
Reference in New Issue
Block a user