diff --git a/.config/fish/aliases.sh b/.config/fish/aliases.sh new file mode 100644 index 0000000..86cce89 --- /dev/null +++ b/.config/fish/aliases.sh @@ -0,0 +1,29 @@ +alias clear='clear && ufetch' +alias cls='/usr/bin/clear' +alias lsc='/usr/bin/ls --color=auto' # Default ls with colors +# alias ls='logo-ls -Dh' # Modern ls https://github.com/Yash-Handa/logo-ls +alias jls='jls -lh' +alias ls='jls' +alias cmus='cmus-rpc-rs --link &>/dev/null & cmus' +alias neofetch='neofetch --kitty /mnt/Data/Personalize/Wallpapers/anime --crop_mode fill --crop_offset center --xoffset 1 --yoffset 1' +alias nfe='neofetch' + +# navigation +alias ..='cd ..' +alias ...='cd ../..' +alias .3='cd ../../..' +alias .4='cd ../../../..' +alias .5='cd ../../../../..' + + +# Colorize grep output (good for log files) +alias grep='grep --color=auto' +alias egrep='egrep --color=auto' +alias fgrep='fgrep --color=auto' + + +# confirm before overwriting something +alias cp="cp -i" +alias mv='mv -i' +alias rm='rm -i' + diff --git a/.config/fish/conf.d/omf.fish b/.config/fish/conf.d/omf.fish new file mode 100644 index 0000000..3e0f6d6 --- /dev/null +++ b/.config/fish/conf.d/omf.fish @@ -0,0 +1,7 @@ +# Path to Oh My Fish install. +set -q XDG_DATA_HOME + and set -gx OMF_PATH "$XDG_DATA_HOME/omf" + or set -gx OMF_PATH "$HOME/.local/share/omf" + +# Load Oh My Fish configuration. +source $OMF_PATH/init.fish diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..083d0db --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,41 @@ +### EXPORT ### +set fish_greeting # Supresses fish's intro message +set TERM "xterm-256color" # Sets the terminal type +set EDITOR "nvim" # $EDITOR use nvim in terminal +set VISUAL "neovide" # $VISUAL use neovide in GUI mode + +source $HOME/.config/fish/functions/functions.fish # Loads the functions file +source $HOME/.config/fish/aliases.sh # Loads the aliases file + + +### SET MANPAGER +### Uncomment only one of these! + +### "bat" as manpager +set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" + +### "vim" as manpager +# set -x MANPAGER '/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa\"