[update] Udate the fish shell config
This commit is contained in:
parent
69ce4691b5
commit
d3e901f710
2 changed files with 8 additions and 30 deletions
|
@ -1,29 +0,0 @@
|
||||||
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 & /bin/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'
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ set VISUAL "neovide" # $VISUAL use neovide in GUI m
|
||||||
source $HOME/.config/fish/completions/*
|
source $HOME/.config/fish/completions/*
|
||||||
source $HOME/.config/fish/functions/functions.fish # Loads the functions file
|
source $HOME/.config/fish/functions/functions.fish # Loads the functions file
|
||||||
source $HOME/.config/shell/aliases.sh # Loads the aliases file
|
source $HOME/.config/shell/aliases.sh # Loads the aliases file
|
||||||
|
clear
|
||||||
source $HOME/.config/nnn/config.sh
|
source $HOME/.config/nnn/config.sh
|
||||||
|
|
||||||
export GTK_IM_MODULE="fcitx"
|
export GTK_IM_MODULE="fcitx"
|
||||||
|
@ -45,7 +46,7 @@ set fish_color_error '#ff6c6b'
|
||||||
set fish_color_param brcyan
|
set fish_color_param brcyan
|
||||||
|
|
||||||
### SETTING THE STARSHIP PROMPT ###
|
### SETTING THE STARSHIP PROMPT ###
|
||||||
starship init fish | source
|
# starship init fish | source
|
||||||
thefuck --alias | source
|
thefuck --alias | source
|
||||||
|
|
||||||
# pnpm
|
# pnpm
|
||||||
|
@ -54,3 +55,9 @@ if not string match -q -- $PNPM_HOME $PATH
|
||||||
set -gx PATH "$PNPM_HOME" $PATH
|
set -gx PATH "$PNPM_HOME" $PATH
|
||||||
end
|
end
|
||||||
# pnpm end
|
# pnpm end
|
||||||
|
|
||||||
|
# Auto run
|
||||||
|
echo "Don't worry I'm here for you <3"
|
||||||
|
oh-my-posh init fish --config ~/.config/ohmyposh/1_shell.omp.json | source
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue