~coder_kalyan/dotfiles

baba27eb79e29a72df3c87c689a43c1df0759fb9 — Kalyan Sriram 7 months ago aa8629f
add fish
2 files changed, 55 insertions(+), 0 deletions(-)

A .config/fish/config.fish
A .config/fish/functions/fish_user_key_bindings.fish
A .config/fish/config.fish => .config/fish/config.fish +52 -0
@@ 0,0 1,52 @@
starship init fish | source

export XDG_CONFIG_HOME=/home/kalyan/.config
export PKG_CONFIG_HOME=/usr/local/lib/pkgconfig:
export XDG_CURRENT_DESKTOP=sway
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"

export _JAVA_AWT_WM_NONREPARENTING=1

alias ls=exa
alias mbsync='mbsync -c "$XDG_CONFIG_HOME/isync/mbsyncrc"'
alias sudo='doas'
alias srcfish='source $HOME/.config/fish/config.fish'
alias wlc='wl-copy'
alias wlp='wl-paste'
alias cat='bat'
alias lt='ls /dev/tty*'
alias spv="source env/bin/activate.fish"
alias spd="deactivate"

alias csway='nvim $HOME/.config/sway/config'
alias cnvim='nvim $HOME/.config/nvim/init.vim'
alias cfish='nvim $HOME/.config/fish/config.fish && srcfish'
alias cwb='nvim $HOME/.config/waybar/config'
alias cgit='nvim $HOME/.gitconfig'
alias config='/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME'

abbr -a g git
abbr -a w west
abbr -a d doas
abbr -a v nvim
abbr -a dv doas nvim
abbr -a p doas pacman
abbr -a c cd
abbr -a cl clear
abbr -a py python
abbr -a l ll
abbr -a m mkdir
abbr -a mp mkdir -p
abbr -a s doas systemctl
abbr -a pc1 picocom -b 115200
abbr -a pc9 picocom -b 9600
abbr -a pd pushd
abbr -a tt timetrace
abbr -a zt zathura

export EDITOR=nvim

export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
export ZEPHYR_SDK_INSTALL_DIR=/home/kalyan/.local/share/zephyr-sdk

fish_vi_key_bindings

A .config/fish/functions/fish_user_key_bindings.fish => .config/fish/functions/fish_user_key_bindings.fish +3 -0
@@ 0,0 1,3 @@
function fish_user_key_bindings
	fzf_key_bindings
end