added existing
This commit is contained in:
2
configs/alias_custom-script.fish
Normal file
2
configs/alias_custom-script.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
# Alias for different custom tools
|
||||
alias ff="simple_ffprobe_script"
|
||||
15
configs/alias_fixing.fish
Normal file
15
configs/alias_fixing.fish
Normal file
@@ -0,0 +1,15 @@
|
||||
# In ~/.config/fish/config.fish
|
||||
|
||||
# Fixing some Programs that do not know Kitty or Alacritty
|
||||
|
||||
# Check if the local terminal supports color (kitty, alacritty, etc.)
|
||||
if test "$TERM" = "xterm-kitty" -o "$TERM" = "alacritty"
|
||||
# If we're in a non-standard terminal, force TERM=xterm-256color for SSH
|
||||
alias ssh 'env TERM=xterm-256color ssh'
|
||||
end
|
||||
|
||||
if test -f $HOME/.config/fish/alias.fish
|
||||
source $HOME/.config/fish/alias.fish
|
||||
end
|
||||
zoxide init fish | source
|
||||
alias cd='z'
|
||||
105
configs/alias_useful.fish
Normal file
105
configs/alias_useful.fish
Normal file
@@ -0,0 +1,105 @@
|
||||
#
|
||||
# In ~/.config/fish/configs/alias_useful.fish
|
||||
#
|
||||
|
||||
if test "$TERM" = "xterm-kitty"
|
||||
alias icat='kitty +kitten icat'
|
||||
end
|
||||
|
||||
|
||||
alias fish_config='nano $HOME/.config/fish/config.fish' # Open the fish Config in Text editor
|
||||
|
||||
# Easier Ollama Commands
|
||||
alias llama_start='ollama serve' # Start the LLama server
|
||||
alias llama3='ollama run llama3' # Start the LLama Chat
|
||||
|
||||
alias force_delete='sudo rm -rf' # Delete Folder/Files with included Folder/Files
|
||||
|
||||
alias tasks='btop'
|
||||
|
||||
alias python='python3'
|
||||
alias py='python3'
|
||||
|
||||
alias uni_play='mpv --vo=tct' # Plays a video in terminal with Unicode
|
||||
alias asci_play='mpv --vo=caca' # Plays a video in terminal with ASCII
|
||||
|
||||
alias remount='sudo mount -a'
|
||||
|
||||
alias mount_config='sudo nano /etc/fstab'
|
||||
|
||||
function mkvenv
|
||||
if test (count $argv) -lt 1
|
||||
echo "Usage: mkvenv {folder name}"
|
||||
return 1
|
||||
end
|
||||
python3 -m venv $argv[1]
|
||||
source $argv[1]/bin/activate.fish
|
||||
end
|
||||
|
||||
alias own='sudo chown -R "$USER":"$USER" themes'
|
||||
alias right='sudo chmod -R 755'
|
||||
|
||||
alias reload='clear && omf reload'
|
||||
|
||||
# LS to eza Commands
|
||||
alias ls 'eza -a --color=always --group-directories-first --icons' # preferred listing
|
||||
alias lr 'eza -al --color=always --group-directories-first --icons' # all files and dirs
|
||||
alias ll 'eza -l --color=always --group-directories-first --icons' # long format
|
||||
alias lt 'eza -aT --color=always --group-directories-first --icons' # tree listing
|
||||
alias l. 'eza -ald --color=always --group-directories-first --icons .*' # show only dotfiles
|
||||
alias lf 'eza -aD --color=always --group-directories-first --icons' # show only folder
|
||||
|
||||
# Common use
|
||||
alias .. 'cd ..'
|
||||
alias ... 'cd ../..'
|
||||
alias .... 'cd ../../..'
|
||||
alias ..... 'cd ../../../..'
|
||||
alias ...... 'cd ../../../../..'
|
||||
|
||||
alias grep 'ugrep --color=auto'
|
||||
alias egrep 'ugrep -E --color=auto'
|
||||
alias fgrep 'ugrep -F --color=auto'
|
||||
|
||||
alias ip 'ip -color'
|
||||
|
||||
alias psmem 'ps auxf | sort -nr -k 4'
|
||||
alias psmem10 'ps auxf | sort -nr -k 4 | head -10'
|
||||
|
||||
alias tarnow 'tar -acf '
|
||||
alias untar 'tar -zxvf '
|
||||
|
||||
alias dir 'dir --color=auto'
|
||||
alias vdir 'vdir --color=auto'
|
||||
|
||||
alias wget 'wget -c '
|
||||
|
||||
alias jctl 'journalctl -p 3 -xb'
|
||||
|
||||
alias ocrmypdf 'ocrmypdf --deskew --clean --rotate-pages'
|
||||
|
||||
function rcp
|
||||
if test (count $argv) -lt 2
|
||||
echo "Usage: rcp SOURCE... DESTINATION"
|
||||
return 1
|
||||
end
|
||||
rsync -avh --progress $argv
|
||||
end
|
||||
|
||||
function rmv
|
||||
if test (count $argv) -lt 2
|
||||
echo "Usage: rmv SOURCE... DESTINATION"
|
||||
return 1
|
||||
end
|
||||
rsync -avh --progress --remove-source-files $arg
|
||||
end
|
||||
function nanorm
|
||||
if test (count $argv) -lt 1
|
||||
echo "Usage: nanorm {FILE}"
|
||||
return 1
|
||||
end
|
||||
set arg $argv[1]
|
||||
if test -f $arg
|
||||
rm $arg
|
||||
end
|
||||
nano $arg
|
||||
end
|
||||
71
configs/arch_config.fish
Normal file
71
configs/arch_config.fish
Normal file
@@ -0,0 +1,71 @@
|
||||
#
|
||||
# ~/.config/fish/configs/arch_config.fish
|
||||
#
|
||||
|
||||
alias sway_config='nano $HOME/.config/sway/config' # Open the fish Config in Text editor
|
||||
|
||||
alias git_update='$HOME/.config/fish/scripts/git-update.sh'
|
||||
|
||||
alias mount_all='$HOME/.config/fish/scripts/mount.sh'
|
||||
alias umount_all='$HOME/.config/fish/scripts/umount.sh'
|
||||
|
||||
alias print_cam='ssh honney@192.168.1.184'
|
||||
|
||||
function updateall
|
||||
# Get current Discord version (if installed)
|
||||
if pacman -Qq discord >/dev/null 2>&1
|
||||
set version_before (pacman -Qq discord)
|
||||
else
|
||||
set version_before ""
|
||||
end
|
||||
|
||||
# Run updates
|
||||
sudo pacman -Syu
|
||||
yay -Sua --sudoloop
|
||||
flatpak update
|
||||
|
||||
# Get new Discord version (if installed)
|
||||
if pacman -Qq discord >/dev/null 2>&1
|
||||
set version_after (pacman -Qq discord)
|
||||
else
|
||||
set version_after ""
|
||||
end
|
||||
|
||||
# Compare versions
|
||||
if test "$version_before" != "$version_after"
|
||||
echo "Discord version changed: $version_before -> $version_after"
|
||||
echo "Running extra command..."
|
||||
sh -c "$(curl -sS https://raw.githubusercontent.com/Vendicated/VencordInstaller/main/install.sh)"
|
||||
end
|
||||
end
|
||||
|
||||
alias mirror='sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist'
|
||||
alias mirrora='sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist'
|
||||
alias mirrord='sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist'
|
||||
alias mirrors='sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist'
|
||||
|
||||
alias big='expac -H M "%m\t%n" | sort -h | nl' # Sort installed packages according to size in MB (expac must be installed)
|
||||
alias fixpacman='sudo rm /var/lib/pacman/db.lck'
|
||||
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages
|
||||
|
||||
alias rip 'expac --timefmt="%Y-%m-%d %T" "%l\t%n %v" | sort | tail -200 | nl'
|
||||
|
||||
function cleanup
|
||||
while pacman -Qdtq
|
||||
sudo pacman -R (pacman -Qdtq)
|
||||
end
|
||||
end
|
||||
|
||||
function scenedetectenv
|
||||
source ~/.venvs/scenedetect-env/bin/activate.fish
|
||||
set -gx PATH ~/.venvs/scenedetect-env/bin $PATH
|
||||
end
|
||||
|
||||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
end
|
||||
1
configs/default_config.fish
Normal file
1
configs/default_config.fish
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
8
configs/fedora_config.fish
Normal file
8
configs/fedora_config.fish
Normal file
@@ -0,0 +1,8 @@
|
||||
#
|
||||
# ~/.config/fish/configs/fedora_config.fish
|
||||
#
|
||||
alias ff='$HOME/.bin/simple_ffprobe_script'
|
||||
|
||||
alias ssh='env TERM=xterm-256color ssh'
|
||||
|
||||
alias updateall='sudo dnf upgrade --refresh && flatpak update'
|
||||
10
configs/function_usefull.fish
Normal file
10
configs/function_usefull.fish
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
# yazi file manager wrapper
|
||||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
end
|
||||
41
configs/theme.fish
Normal file
41
configs/theme.fish
Normal file
@@ -0,0 +1,41 @@
|
||||
# OPTIONS FOR BOBTHEFISH (Theme)
|
||||
set -g theme_display_git yes
|
||||
set -g theme_display_git_dirty no
|
||||
set -g theme_display_git_untracked no
|
||||
set -g theme_display_git_ahead_verbose yes
|
||||
set -g theme_display_git_dirty_verbose yes
|
||||
set -g theme_display_git_stashed_verbose yes
|
||||
set -g theme_display_git_default_branch yes
|
||||
set -g theme_git_default_branches master main
|
||||
set -g theme_git_worktree_support yes
|
||||
set -g theme_use_abbreviated_branch_name yes
|
||||
set -g theme_display_vagrant yes
|
||||
set -g theme_display_docker_machine no
|
||||
set -g theme_display_k8s_context yes
|
||||
set -g theme_display_hg yes
|
||||
set -g theme_display_virtualenv no
|
||||
set -g theme_display_nix no
|
||||
set -g theme_display_ruby no
|
||||
set -g theme_display_node yes
|
||||
set -g theme_display_user ssh
|
||||
set -g theme_display_hostname ssh
|
||||
set -g theme_display_vi no
|
||||
set -g theme_display_date no
|
||||
set -g theme_display_cmd_duration yes
|
||||
set -g theme_title_display_process yes
|
||||
set -g theme_title_display_path no
|
||||
set -g theme_title_display_user yes
|
||||
set -g theme_title_use_abbreviated_path no
|
||||
set -g theme_date_format "+%a %H:%M"
|
||||
set -g theme_date_timezone America/Los_Angeles
|
||||
set -g theme_avoid_ambiguous_glyphs yes
|
||||
set -g theme_powerline_fonts no
|
||||
set -g theme_nerd_fonts yes
|
||||
set -g theme_show_exit_status yes
|
||||
set -g theme_display_jobs_verbose yes
|
||||
set -g default_user your_normal_user
|
||||
set -g theme_color_scheme dark
|
||||
set -g fish_prompt_pwd_dir_length 0
|
||||
set -g theme_project_dir_length 1
|
||||
set -g theme_newline_cursor yes
|
||||
set -g theme_newline_prompt '$ '
|
||||
1
configs/ubuntu_config.fish
Normal file
1
configs/ubuntu_config.fish
Normal file
@@ -0,0 +1 @@
|
||||
alias uninstall='sudo apt purge -y'
|
||||
Reference in New Issue
Block a user