Change shell to fish

This commit is contained in:
dogeystamp 2021-10-21 17:44:21 -04:00
parent 8223ce3132
commit 0346f05fea
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
5 changed files with 22 additions and 32 deletions

View File

@ -7,7 +7,7 @@ alias mpv='mpv --ytdl-format="bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4
alias youtube-dl='youtube-dl -f "bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]"'
# Set gpg tty so curses pinentry works
alias gpgt='export GPG_TTY=$(tty)'
alias gpgt='export GPG_TTY=(tty)'
# Remove newlines from clipboard (for competitive programming)
alias dnl='xsel -b | tr "\n" " " | xsel -ib'
@ -16,9 +16,9 @@ alias dnl='xsel -b | tr "\n" " " | xsel -ib'
alias nvimp='nvim -u NONE -c "setlocal history=0 nobackup nomodeline noshelltemp noswapfile noundofile nowritebackup secure viminfo=\"\""'
# Read pdf file as text
pdfr () {
pdftotext $1 - | nvim
}
function pdfr
pdftotext $argv - | nvim
end
# Specific to my Gentoo system
alias genlop='doas -u portage /usr/bin/genlop'

5
src/.config/bashrc Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# Use fish in place of bash
# keep this line at the bottom of ~/.bashrc
[ -x /bin/fish ] && SHELL=/bin/fish exec fish

View File

@ -0,0 +1,10 @@
if status is-interactive
# Commands to run in interactive sessions can go here
end
source .config/fish/aliases.fish
set -gx PATH "$PATH:$HOME/.local/bin:"
set fish_greeting ""
fish_vi_key_bindings

View File

@ -1,27 +0,0 @@
autoload -Uz compinit promptinit
bindkey -v
compinit
promptinit
prompt redhat
SAVEHIST=500
PATH=$PATH:~/.local/bin/
# This is where these files are on my Gentoo system
source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
source ~/.config/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# On my Arch systems
# source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
# Load aliases
source ~/.config/zsh/aliases.zsh
# Fix bug with curses pinentry
gpgt

View File

@ -1,4 +1,4 @@
#/bin/sh
#!/bin/sh
# Set XDG directories
export XDG_CONFIG_HOME="$HOME"/.config
@ -33,3 +33,5 @@ export EDITOR="nvim"
export REALNAME="dogeystamp"
export EMAIL="dogeystamp@disroot.org"
export KEYID="A3A5FA72F8E5E54FBEE425057225FE3592EFFA38"
source .config/bashrc