mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-25 00:38:20 -05:00
Fixed my fish shell
Signed-off-by: The-Repo-Club <wayne6324@gmail.com>
This commit is contained in:
parent
0e57dc74fc
commit
828eb3a263
@ -24,7 +24,7 @@ end
|
||||
|
||||
# Update Repo
|
||||
function update
|
||||
command pacman -Syu
|
||||
command sudo pacman -Syu
|
||||
end
|
||||
|
||||
function aurupdate
|
||||
@ -32,16 +32,16 @@ function aurupdate
|
||||
end
|
||||
|
||||
function upall
|
||||
command pacman -Fy && pacman -Syu --noconfirm && aurupdate
|
||||
command sudo pacman -Fy && sudo pacman -Syu --noconfirm && aurupdate
|
||||
end
|
||||
|
||||
#check aur and arch packages
|
||||
function checkarch
|
||||
command pacman -Qqen >~/package_list.txt
|
||||
command sudo pacman -Qqen >~/package_list.txt
|
||||
end
|
||||
|
||||
function checkaur
|
||||
command pacman -Qqem >~/package_list_aur.txt
|
||||
command sudo pacman -Qqem >~/package_list_aur.txt
|
||||
end
|
||||
|
||||
# Pacman unlock
|
@ -1,3 +1,5 @@
|
||||
# arch repo commands
|
||||
|
||||
function updaterepo
|
||||
while true
|
||||
read -l -P "Are you sure you want to update arch repo? [y/N] " confirm
|
||||
@ -5,7 +7,7 @@ function updaterepo
|
||||
switch $confirm
|
||||
case Y y
|
||||
cd /mnt/500GB/.gitlabs/Arch.TheRepo.Club/
|
||||
./git-v1.sh $argv
|
||||
./x86_64/updaterepo.sh $argv
|
||||
cd $dirprev[1]
|
||||
echoResponce "Arch repo has been updated."
|
||||
return
|
||||
@ -21,7 +23,7 @@ function updatereadme
|
||||
|
||||
switch $confirm
|
||||
case Y y
|
||||
cd /mnt/500GB/.gitlabs/Arch.TheRepo.Club/docs/
|
||||
cd /mnt/500GB/.gitlabs/Arch.TheRepo.Club/scripts/
|
||||
python updatereadme.py
|
||||
cd $dirprev[1]
|
||||
cd /mnt/500GB/.gitlabs/Arch.TheRepo.Club/x86_64/
|
@ -1,3 +1,5 @@
|
||||
# ssh commands
|
||||
|
||||
function chris
|
||||
ssh linknsync@51.89.161.207
|
||||
end
|
16
fish/.config/fish/conf.d/00_profile.fish
Normal file
16
fish/.config/fish/conf.d/00_profile.fish
Normal file
@ -0,0 +1,16 @@
|
||||
#-*-coding:utf-8 -*-
|
||||
xset b off
|
||||
setxkbmap -layout gb
|
||||
setxkbmap -option caps:super
|
||||
|
||||
set -gx LC_ALL "en_GB.UTF-8"
|
||||
set -gx PAGER "most"
|
||||
set -gx AUR_PAGER "most"
|
||||
set -gx EDITOR "nvim-qt"
|
||||
set -gx GIT_TOKEN "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"
|
||||
#QT and GTK Variables
|
||||
set -gx QT_QPA_PLATFORMTHEME "qt5ct"
|
||||
set -gx QT_AUTO_SCREEN_SCALE_FACTOR 0
|
||||
set -gx TDESKTOP_USE_GTK_FILE_DIALOG 1
|
||||
|
||||
set -gx GOPATH $HOME/.cache/go
|
5
fish/.config/fish/conf.d/01_greeting.fish
Normal file
5
fish/.config/fish/conf.d/01_greeting.fish
Normal file
@ -0,0 +1,5 @@
|
||||
# greeting for fish shell
|
||||
|
||||
function fish_greeting
|
||||
shellfetch
|
||||
end
|
4
fish/.config/fish/conf.d/01_keybinds.fish
Normal file
4
fish/.config/fish/conf.d/01_keybinds.fish
Normal file
@ -0,0 +1,4 @@
|
||||
# Keybinding
|
||||
bind \ec __history_previous_command
|
||||
bind \e\e __sudope
|
||||
|
33
fish/.config/fish/conf.d/02_paths.fish
Normal file
33
fish/.config/fish/conf.d/02_paths.fish
Normal file
@ -0,0 +1,33 @@
|
||||
set PATH "$HOME/.local/bin:$PATH"
|
||||
|
||||
# Adds `~/.config/composer/vendor/bin` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.config/composer/vendor/bin"
|
||||
set PATH "$HOME/.config/composer/vendor/bin:$PATH"
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/repobar` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.local/bin/repobar"
|
||||
set PATH "$HOME/.local/bin/repobar:$PATH"
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/lemonbar` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.local/bin/lemonbar"
|
||||
set PATH "$HOME/.local/bin/lemonbar:$PATH"
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/discord_bot` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.local/bin/discord_bot"
|
||||
set PATH "$HOME/.local/bin/discord_bot:$PATH"
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/clipmenu` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.local/bin/clipmenu"
|
||||
set PATH "$HOME/.local/bin/clipmenu:$PATH"
|
||||
end
|
||||
|
||||
set PATH $(printf %s "$PATH" | awk -vRS=: '!a[$0]++' | paste -s -d:)
|
50
fish/.config/fish/conf.d/08_minimal-mistakes.fish
Normal file
50
fish/.config/fish/conf.d/08_minimal-mistakes.fish
Normal file
@ -0,0 +1,50 @@
|
||||
# Dracula Color Palette
|
||||
set -l foreground e5e9f0
|
||||
set -l selection 434c5e
|
||||
set -l comment 81a1c1
|
||||
set -l red ff5959
|
||||
set -l orange ff9c59
|
||||
set -l yellow ffff59
|
||||
set -l green 59ff59
|
||||
set -l purple 9059ff
|
||||
set -l cyan 59fff9
|
||||
set -l pink ff59f9
|
||||
|
||||
# Syntax Highlighting Colors
|
||||
set -gx fish_color_normal $foreground
|
||||
set -gx fish_color_command $cyan
|
||||
set -gx fish_color_keyword $pink
|
||||
set -gx fish_color_quote $yellow
|
||||
set -gx fish_color_redirection $foreground
|
||||
set -gx fish_color_end $orange
|
||||
set -gx fish_color_error $red
|
||||
set -gx fish_color_param $purple
|
||||
set -gx fish_color_comment $comment
|
||||
set -gx fish_color_selection --background=$selection
|
||||
set -gx fish_color_search_match --background=$selection
|
||||
set -gx fish_color_operator $green
|
||||
set -gx fish_color_escape $pink
|
||||
set -gx fish_color_autosuggestion $comment
|
||||
set -gx fish_color_cancel $red --reverse
|
||||
set -gx fish_color_option $orange
|
||||
|
||||
# Default Prompt Colors
|
||||
set -gx fish_color_cwd $green
|
||||
set -gx fish_color_host $purple
|
||||
set -gx fish_color_host_remote $purple
|
||||
set -gx fish_color_user $cyan
|
||||
|
||||
# Completion Pager Colors
|
||||
set -gx fish_pager_color_progress $comment
|
||||
set -gx fish_pager_color_background
|
||||
set -gx fish_pager_color_prefix $cyan
|
||||
set -gx fish_pager_color_completion $foreground
|
||||
set -gx fish_pager_color_description $comment
|
||||
set -gx fish_pager_color_selected_background --background=$selection
|
||||
set -gx fish_pager_color_selected_prefix $cyan
|
||||
set -gx fish_pager_color_selected_completion $foreground
|
||||
set -gx fish_pager_color_selected_description $comment
|
||||
set -gx fish_pager_color_secondary_background
|
||||
set -gx fish_pager_color_secondary_prefix $cyan
|
||||
set -gx fish_pager_color_secondary_completion $foreground
|
||||
set -gx fish_pager_color_secondary_description $comment
|
@ -1,58 +1,7 @@
|
||||
if test -f "$HOME/.config/fish/fish.profile"
|
||||
source "$HOME/.config/fish/fish.profile"
|
||||
for plugins in "$HOME/.config/fish/plugins/"*
|
||||
source $plugins
|
||||
end
|
||||
|
||||
set PATH "$HOME/.local/bin:$PATH"
|
||||
|
||||
# Adds `~/.config/composer/vendor/bin` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.config/composer/vendor/bin"
|
||||
set PATH "$HOME/.config/composer/vendor/bin:$PATH"
|
||||
for aliases in "$HOME/.config/fish/aliases/"*
|
||||
source $aliases
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/repobar` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.local/bin/repobar"
|
||||
set PATH "$HOME/.local/bin/repobar:$PATH"
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/lemonbar` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.local/bin/lemonbar"
|
||||
set PATH "$HOME/.local/bin/lemonbar:$PATH"
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/discord_bot` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.local/bin/discord_bot"
|
||||
set PATH "$HOME/.local/bin/discord_bot:$PATH"
|
||||
end
|
||||
|
||||
# Adds `~/.local/bin/clipmenu` to $PATH
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if test -d "$HOME/.local/bin/clipmenu"
|
||||
set PATH "$HOME/.local/bin/clipmenu:$PATH"
|
||||
end
|
||||
|
||||
function fish_greeting
|
||||
shellfetch
|
||||
end
|
||||
|
||||
# Get all the files inside folder
|
||||
for file in "$HOME/.config/fish/aliases/"*
|
||||
source $file
|
||||
end
|
||||
|
||||
for file in "$HOME/.config/fish/plugins/"*
|
||||
source $file
|
||||
end
|
||||
|
||||
# Keybinding
|
||||
bind \ec __history_previous_command
|
||||
bind \e\e __sudope
|
||||
|
||||
# if status is-login
|
||||
# if test (tty) = /dev/tty1
|
||||
# exec tbsm
|
||||
# end
|
||||
# end
|
||||
|
@ -1,36 +1,8 @@
|
||||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_init_2_39_8:\x1d
|
||||
SETUVAR __fish_init_2_3_0:\x1d
|
||||
SETUVAR __fish_initialized:3400
|
||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
||||
SETUVAR fish_color_cancel:\x2dr
|
||||
SETUVAR fish_color_command:green
|
||||
SETUVAR fish_color_comment:red
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:brmagenta
|
||||
SETUVAR fish_color_error:brred
|
||||
SETUVAR fish_color_escape:bryellow\x1e\x2d\x2dbold
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:yellow
|
||||
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:bryellow
|
||||
SETUVAR fish_color_param:cyan
|
||||
SETUVAR fish_color_quote:yellow
|
||||
SETUVAR fish_color_redirection:brblue
|
||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_status:red
|
||||
SETUVAR fish_color_user:brgreen
|
||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||
SETUVAR fish_greeting:Welcome\x20to\x20fish\x2c\x20the\x20friendly\x20interactive\x20shell
|
||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||
SETUVAR fish_pager_color_completion:\x1d
|
||||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
SETUVAR fish_pager_color_selected_background:\x2dr
|
||||
SETUVAR fish_prompt_pwd_dir_length:100
|
||||
|
Loading…
Reference in New Issue
Block a user