You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
dotfiles/zshrc

78 lines
2.5 KiB

if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source ${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh
fi
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="powerlevel10k/powerlevel10k"
CASE_SENSITIVE="true"
zstyle ':omz:update' mode auto # update automatically without asking
zstyle ':omz:update' frequency 7
plugins=(zsh-autosuggestions sudo web-search copyfile dirhistory jsontools)
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
#LAMMPS path variables
export PATH=home/frosty/Programs/Python/NeoMDWeb/lammps/install/bin:$PATH
#export PYTHONPATH=/home/frosty/Apps/lammps/install/python:$PYTHONPATH
export LD_LIBRARY_PATH=/home/frosty/Programs/Python/NeoMDWeb/lammps/install/lib:$LD_LIBRARY_PATH
#export SLEPC_DIR=/opt/slepc/linux-c-opt
#petsc path variables
#export PYTHONPATH=/home/frosty/Programs/Python/NeoMDWeb/petsc/install/lib:$PYTHONPATH
# -n; string is not null
export EDITOR='nvim'
export VISUAL='nvim'
alias ucpdaemon='/home/frosty/Programs/Rust/UnifiedCopyPaste/target/debug/daemon'
alias ucpserver='/home/frosty/Programs/Rust/UnifiedCopyPaste/target/debug/server'
alias fixWifi='sudo rmmod iwlmvm; sudo rmmod iwlwifi; sudo modprobe iwlmvm; sudo modprobe iwlwifi'
alias weather='curl wttr.in'
alias sshLANL='ssh -t -l rhnatyshyn wtrw.lanl.gov ssh ch-fe.lanl.gov'
function tunnelLANL() {
if [ -n "$1" ]
then
ssh -4 -L 7687:127.0.0.1:7270 rhnatyshyn@wtrw.lanl.gov ssh -L 7270:127.0.0.1:7271 ch-fe ssh -L 7271:127.0.0.1:7687 nid"$1"
else
echo "Specify a node to connect to!"
fi
}
function scan() {
if [ -n "$1" ]
then
scanimage --device "airscan:w0:CANON INC. TS6100 series" --format=png --output-file "$1" --progress
else
scanimage --device "airscan:w0:CANON INC. TS6100 series" --format=png --output-file file.png --progress
fi
}
zstyle ':completion:*' completer _complete _approximate
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select
zstyle ':completion:*' file-list all
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/.zcompcache"
zstyle :compinstall filename '/home/frosty/.zshrc'
autoload -Uz compinit; compinit
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -v # bind keys to vim mode
eval "$(zoxide init zsh)"
#PROMPT='%n@%m %B%F{240}%1~%f%b > '
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh