2020-10-09 17:15:42 +02:00
|
|
|
#vi mode for fish
|
2020-10-27 11:56:49 +01:00
|
|
|
#fish_vi_key_bindings
|
2020-10-27 12:00:15 +01:00
|
|
|
fish_default_key_bindings
|
2020-10-09 17:15:42 +02:00
|
|
|
|
2021-02-16 18:19:36 +01:00
|
|
|
# change greeting
|
|
|
|
set fish_greeting "Good Morning! Nice day for fishing ain't it! Hu ha!"
|
|
|
|
|
2020-10-27 17:10:17 +01:00
|
|
|
# Info:
|
|
|
|
# https://fishshell.com/docs/current/index.html#variables-for-changing-highlighting-colors
|
|
|
|
set fish_color_normal blue
|
|
|
|
set fish_color_command blue
|
|
|
|
set fish_color_quote bryellow
|
|
|
|
set fish_color_redirection
|
|
|
|
set fish_color_end brred
|
|
|
|
set fish_color_error red
|
|
|
|
set fish_color_param brblue
|
|
|
|
set fish_color_comment white
|
|
|
|
set fish_color_selection brcyan
|
|
|
|
set fish_color_search_match magenta
|
|
|
|
set fish_color_operator blue
|
|
|
|
set fish_color_escape green
|
|
|
|
set fish_color_cwd yellow
|
|
|
|
set fish_color_autosuggestion brwhite
|
|
|
|
set fish_color_user yellow
|
|
|
|
set fish_color_host brwhite
|
|
|
|
set fish_color_host_remote brwhite
|
|
|
|
set fish_color_cancel brred
|
|
|
|
|
2020-11-10 14:22:23 +01:00
|
|
|
# environment variables
|
2021-02-23 16:23:02 +01:00
|
|
|
# for ranger
|
|
|
|
#set RANGER_LOAD_DEFAULT_RC FALSE
|
|
|
|
|
|
|
|
# text editor
|
2021-02-10 11:04:01 +01:00
|
|
|
#set EDITOR "/usr/bin/emacs --no-window-system"
|
|
|
|
#set VISUAL "/usr/bin/emacs --no-window-system"
|
2021-03-22 17:02:20 +01:00
|
|
|
set EDITOR "/usr/bin/nvim"
|
|
|
|
set VISUAL "/usr/bin/nvim"
|
2020-11-10 14:22:23 +01:00
|
|
|
|
2020-11-09 20:43:12 +01:00
|
|
|
# add paths
|
|
|
|
set fish_user_paths "$HOME/.emacs.d/bin/" $fish_user_paths
|
2020-11-26 07:45:16 +01:00
|
|
|
set fish_user_paths "$HOME/scripts/in_path" $fish_user_paths
|
2021-01-06 21:43:49 +01:00
|
|
|
set fish_user_paths "$HOME/.local/bin" $fish_user_paths
|
2020-11-09 20:43:12 +01:00
|
|
|
|
2020-12-28 19:41:56 +01:00
|
|
|
# edit with emacs
|
|
|
|
alias emacs="/usr/bin/emacs --no-window-system"
|
|
|
|
|
2021-03-22 17:02:20 +01:00
|
|
|
# use neovim instead of vim
|
|
|
|
alias vim="/usr/bin/nvim"
|
|
|
|
|
2021-01-09 09:38:39 +01:00
|
|
|
# alias cat
|
|
|
|
alias cat="$HOME/scripts/pieces/cat.sh"
|
|
|
|
|
2020-02-29 15:39:23 +01:00
|
|
|
#update config
|
2021-01-29 17:09:18 +01:00
|
|
|
alias upconf='~/scripts/arch-config.sh'
|
2020-02-24 10:34:21 +01:00
|
|
|
|
2020-09-10 20:52:05 +02:00
|
|
|
#download & execute setup
|
2021-01-29 17:09:18 +01:00
|
|
|
alias setup='git clone https://gitlab.com/RealStickman-arch/setup && cd setup && bash install.sh'
|
2020-09-10 20:52:05 +02:00
|
|
|
|
2020-10-10 12:46:28 +02:00
|
|
|
#notification
|
|
|
|
alias notify='notify-send "Terminal" "Your command finished!" --icon=dialog-information'
|
|
|
|
|
2021-04-29 13:35:17 +02:00
|
|
|
# ssh alias to never bother with terminfo again
|
|
|
|
# needs python on the server
|
2021-04-29 13:32:49 +02:00
|
|
|
alias ssh='kitty +kitten ssh use-python'
|
2021-03-09 17:15:12 +01:00
|
|
|
|
2021-05-06 10:40:18 +02:00
|
|
|
# alias for powershell
|
|
|
|
alias powershell='pwsh'
|
|
|
|
|
2020-02-24 10:34:21 +01:00
|
|
|
#list
|
|
|
|
alias ls='ls --color=auto'
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias la='ls -a'
|
|
|
|
#alias ll='ls -la'
|
|
|
|
#alias l='ls'
|
|
|
|
#alias l.="ls -A | egrep '^\.'"
|
2020-02-24 10:34:21 +01:00
|
|
|
|
|
|
|
# fix obvious typo's
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias cd..='cd ..'
|
2020-02-24 10:34:21 +01:00
|
|
|
|
|
|
|
## Colorize the grep command output for ease of use (good for log files)##
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
alias egrep='egrep --color=auto'
|
|
|
|
alias fgrep='fgrep --color=auto'
|
|
|
|
|
|
|
|
# continue download
|
|
|
|
alias wget="wget -c"
|
|
|
|
|
|
|
|
# Aliases for software managment
|
2020-12-28 19:41:56 +01:00
|
|
|
alias pacman='pacman --color auto'
|
2020-11-14 14:17:30 +01:00
|
|
|
#alias update='yay -Syu --sudoloop'
|
2021-02-23 16:16:54 +01:00
|
|
|
#alias update='paru -Syu --sudoloop --newsonupgrade --upgrademenu --combinedupgrade; notify'
|
2020-11-14 10:56:31 +01:00
|
|
|
|
2021-03-10 10:34:49 +01:00
|
|
|
# Update pip packages
|
2021-03-29 08:42:35 +02:00
|
|
|
alias pip-update='pip list --outdated --format=freeze | cut -d = -f 1 | xargs -n1 pip install -U --user'
|
2021-03-10 10:34:49 +01:00
|
|
|
|
2020-02-24 10:34:21 +01:00
|
|
|
#grub update
|
2021-01-04 08:24:54 +01:00
|
|
|
alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
2020-02-24 10:34:21 +01:00
|
|
|
|
|
|
|
#check vulnerabilities microcode
|
|
|
|
alias microcode='grep . /sys/devices/system/cpu/vulnerabilities/*'
|
|
|
|
|
|
|
|
#get fastest mirrors in your neighborhood
|
2021-02-15 15:48:41 +01:00
|
|
|
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
2020-11-23 08:52:11 +01:00
|
|
|
#alias mirror-delay="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
|
|
|
#alias mirror-score="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
|
|
|
#alias mirror-age="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
2020-02-24 10:34:21 +01:00
|
|
|
|
|
|
|
#mounting the folder Public for exchange between host and guest on virtualbox
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias vbm="sudo mount -t vboxsf -o rw,uid=1000,gid=1000 Public /home/$USER/Public"
|
2020-02-24 10:34:21 +01:00
|
|
|
|
|
|
|
#youtube-dl
|
|
|
|
alias yta-aac="youtube-dl --extract-audio --audio-format aac "
|
|
|
|
alias yta-best="youtube-dl --extract-audio --audio-format best "
|
|
|
|
alias yta-flac="youtube-dl --extract-audio --audio-format flac "
|
|
|
|
alias yta-m4a="youtube-dl --extract-audio --audio-format m4a "
|
|
|
|
alias yta-mp3="youtube-dl --extract-audio --audio-format mp3 "
|
|
|
|
alias yta-opus="youtube-dl --extract-audio --audio-format opus "
|
|
|
|
alias yta-vorbis="youtube-dl --extract-audio --audio-format vorbis "
|
|
|
|
alias yta-wav="youtube-dl --extract-audio --audio-format wav "
|
|
|
|
|
|
|
|
alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
|
|
|
|
|
|
|
#Cleanup orphaned packages
|
|
|
|
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'
|
|
|
|
|
2020-11-23 09:33:02 +01:00
|
|
|
# Clean cached packages
|
|
|
|
alias cleancache='paru -Sc'
|
|
|
|
|
2020-02-24 10:34:21 +01:00
|
|
|
#get the error messages from journalctl
|
2020-10-27 11:56:49 +01:00
|
|
|
#alias jctl="journalctl -p 3 -xb"
|
2020-02-24 10:34:21 +01:00
|
|
|
|
2020-02-27 20:06:29 +01:00
|
|
|
#cpu-x as sudo
|
|
|
|
alias cpu-x="sudo cpu-x"
|
|
|
|
|
2020-02-29 15:20:17 +01:00
|
|
|
#wireguard
|
2020-02-29 15:21:28 +01:00
|
|
|
alias wgs="sudo wg show"
|
2020-02-29 15:20:17 +01:00
|
|
|
alias wgqu="sudo wg-quick up"
|
|
|
|
alias wgqd="sudo wg-quick down"
|
|
|
|
|
2020-08-26 21:50:32 +02:00
|
|
|
#execute stuff
|
2020-02-24 10:34:21 +01:00
|
|
|
neofetch
|