1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

added fish aliases to zsh

This commit is contained in:
Ryan Kes 2020-05-16 20:05:52 +02:00
parent 919c440ef5
commit 29e225797d
2 changed files with 201 additions and 1 deletions

View File

@ -11,6 +11,7 @@ TERM="xterm-256color"
path_if_exists ~/.config/yarn/global/node_modules/.bin path_if_exists ~/.config/yarn/global/node_modules/.bin
path_if_exists ~/.local/bin path_if_exists ~/.local/bin
path_if_exists ~/.emacs.d/bin path_if_exists ~/.emacs.d/bin
path_if_exists ~/go/bin
# Set GPG TTY # Set GPG TTY
export GPG_TTY="$(tty)" export GPG_TTY="$(tty)"
@ -38,9 +39,182 @@ export EDITOR="nvim"
# Enable password store extensions # Enable password store extensions
export PASSWORD_STORE_ENABLE_EXTENSIONS="true" export PASSWORD_STORE_ENABLE_EXTENSIONS="true"
# Make sure pass uses the proper directory
export PASSWORD_STORE_DIR=~/.local/share/pass
# Use alternative muhome
export MU_HOME=~/.cache/mu
# Load xinit from the proper directory
export XINITRC=~/X11/xinitrc
# This needs to be set for bspwm to see config # This needs to be set for bspwm to see config
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
# Enable icons in lf
export LF_ICONS="\
tw=:\
st=:\
ow=:\
dt=:\
di=:\
fi=:\
ln=:\
or=:\
ex=:\
*.c=:\
*.cc=:\
*.clj=:\
*.coffee=:\
*.cpp=:\
*.css=:\
*.d=:\
*.dart=:\
*.erl=:\
*.exs=:\
*.fs=:\
*.go=:\
*.h=:\
*.hh=:\
*.hpp=:\
*.hs=:\
*.html=:\
*.java=:\
*.jl=:\
*.js=:\
*.json=:\
*.lua=:\
*.md=:\
*.php=:\
*.pl=:\
*.pro=:\
*.py=:\
*.rb=:\
*.rs=:\
*.scala=:\
*.ts=:\
*.vim=:\
*.cmd=:\
*.ps1=:\
*.sh=:\
*.bash=:\
*.zsh=:\
*.fish=:\
*.tar=:\
*.tgz=:\
*.arc=:\
*.arj=:\
*.taz=:\
*.lha=:\
*.lz4=:\
*.lzh=:\
*.lzma=:\
*.tlz=:\
*.txz=:\
*.tzo=:\
*.t7z=:\
*.zip=:\
*.z=:\
*.dz=:\
*.gz=:\
*.lrz=:\
*.lz=:\
*.lzo=:\
*.xz=:\
*.zst=:\
*.tzst=:\
*.bz2=:\
*.bz=:\
*.tbz=:\
*.tbz2=:\
*.tz=:\
*.deb=:\
*.rpm=:\
*.jar=:\
*.war=:\
*.ear=:\
*.sar=:\
*.rar=:\
*.alz=:\
*.ace=:\
*.zoo=:\
*.cpio=:\
*.7z=:\
*.rz=:\
*.cab=:\
*.wim=:\
*.swm=:\
*.dwm=:\
*.esd=:\
*.jpg=:\
*.jpeg=:\
*.mjpg=:\
*.mjpeg=:\
*.gif=:\
*.bmp=:\
*.pbm=:\
*.pgm=:\
*.ppm=:\
*.tga=:\
*.xbm=:\
*.xpm=:\
*.tif=:\
*.tiff=:\
*.png=:\
*.svg=:\
*.svgz=:\
*.mng=:\
*.pcx=:\
*.mov=:\
*.mpg=:\
*.mpeg=:\
*.m2v=:\
*.mkv=:\
*.webm=:\
*.ogm=:\
*.mp4=:\
*.m4v=:\
*.mp4v=:\
*.vob=:\
*.qt=:\
*.nuv=:\
*.wmv=:\
*.asf=:\
*.rm=:\
*.rmvb=:\
*.flc=:\
*.avi=:\
*.fli=:\
*.flv=:\
*.gl=:\
*.dl=:\
*.xcf=:\
*.xwd=:\
*.yuv=:\
*.cgm=:\
*.emf=:\
*.ogv=:\
*.ogx=:\
*.aac=:\
*.au=:\
*.flac=:\
*.m4a=:\
*.mid=:\
*.midi=:\
*.mka=:\
*.mp3=:\
*.mpc=:\
*.ogg=:\
*.ra=:\
*.wav=:\
*.oga=:\
*.opus=:\
*.spx=:\
*.xspf=:\
*.pdf=:\
*.nix=:\
"
# Save history file in proper place # Save history file in proper place
HISTFILE=~/.cache/zsh/history HISTFILE=~/.cache/zsh/history

View File

@ -45,7 +45,7 @@ fi
zplug load zplug load
# vim alias # nvim alias
alias v="nvim" alias v="nvim"
alias sv="sudo nvim" alias sv="sudo nvim"
@ -56,6 +56,32 @@ alias l="exa -al"
# vifm alias # vifm alias
alias vifm="vifmrun" alias vifm="vifmrun"
# wget alias
alias wget='wget --hsts-file="~/.config/wget-hsts"'
# weechat
alias weechat="weechat -d ~/.config/weechat"
# tmux
alias tmux="tmux -f ~/.config/tmux/tmux.conf"
# pass
alias pass="PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR /usr/bin/pass"
# pacman aliases
alias pacrmorphans="sudo pacman -Rs (pacman -Qtdq)"
alias pacrem="sudo pacman -Rns"
# git alaises
alias gpoat="git push origin --all && git push origin --tags"
alias gs="git status"
alias gd="git diff"
alias g="git"
# Prevent mv & rm oopsies
alias mv="mv -i"
alias rm="rm -i"
# Use lf to switch directories and bind it to ctrl-o # Use lf to switch directories and bind it to ctrl-o
lfcd() { lfcd() {
tmp="$(mktemp)" tmp="$(mktemp)"