better shell
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
things I have installed:
|
things I have installed:
|
||||||
|
|
||||||
full KDE Plasma 6 setup # not essential for sure
|
full KDE Plasma 6 setup # non-essential for sure
|
||||||
which can provide:
|
which can provide:
|
||||||
SDDM theme # Breeze is enough
|
SDDM theme # Breeze is enough
|
||||||
kcalc/kalc # calculator(s), what's the difference?
|
kcalc/kalc # calculator(s), what's the difference?
|
||||||
kcolorchooser # or hyprpicker
|
kcolorchooser # or hyprpicker
|
||||||
pipewire & friends
|
pipewire & friends
|
||||||
... # including other things I (may) have forgotten to list below
|
...
|
||||||
|
|
||||||
# hypr*
|
# hypr*
|
||||||
hyprland
|
hyprland
|
||||||
@@ -15,8 +15,8 @@ hypridle
|
|||||||
hyprlock
|
hyprlock
|
||||||
hyprshot
|
hyprshot
|
||||||
hyprpicker
|
hyprpicker
|
||||||
plugin hyprexpo # scale workspaces and put them in a grid
|
plugin hyprexpo # workspaces overview
|
||||||
plugin xtra-dispatchers # for "plugin:xtd:bringallfrom" dispatcher
|
plugin hyprorganize # https://github.com/Uyanide/hyprplug
|
||||||
|
|
||||||
# xdg-desktop-portal*
|
# xdg-desktop-portal*
|
||||||
xdg-desktop-portal
|
xdg-desktop-portal
|
||||||
@@ -38,6 +38,9 @@ wf-recorder # screen recorder
|
|||||||
brightnessctl
|
brightnessctl
|
||||||
playerctl
|
playerctl
|
||||||
pamixer
|
pamixer
|
||||||
|
zoxide # better cd
|
||||||
|
eza # better ls
|
||||||
|
bat # better cat
|
||||||
|
|
||||||
# GUI
|
# GUI
|
||||||
waybar
|
waybar
|
||||||
@@ -48,7 +51,7 @@ mpv
|
|||||||
network-manager-applet # nm-applet
|
network-manager-applet # nm-applet
|
||||||
blueman # bluetooth GUI & applet
|
blueman # bluetooth GUI & applet
|
||||||
pavucontrol
|
pavucontrol
|
||||||
gnome-text-editor # or kwrite, just notepad replacement
|
gnome-text-editor # or kwrite, notepad replacement
|
||||||
btop # system monitor
|
btop # system monitor
|
||||||
activate-linux # :/
|
activate-linux # :/
|
||||||
polkit-gnome # polkit authentication agent
|
polkit-gnome # polkit authentication agent
|
||||||
|
|||||||
10
.scripts/ssh-init
Normal file
10
.scripts/ssh-init
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ -z "$SSH_AUTH_SOCK" ]; then
|
||||||
|
eval "$(ssh-agent -s)" >/dev/null 2>&1
|
||||||
|
for key in "$HOME/.ssh/keys/"*; do
|
||||||
|
if [ -f "$key" ]; then
|
||||||
|
ssh-add "$key" >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
@@ -5,20 +5,6 @@ end
|
|||||||
# no greeting
|
# no greeting
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
|
|
||||||
# ls alias
|
|
||||||
alias ls="ls --hyperlink=auto --color=auto"
|
|
||||||
alias ll="ls -lh"
|
|
||||||
alias la="ls -lha"
|
|
||||||
|
|
||||||
# grep alias
|
|
||||||
alias grep="grep --color=auto"
|
|
||||||
|
|
||||||
# nvim
|
|
||||||
if type -q nvim
|
|
||||||
set -x EDITOR nvim
|
|
||||||
set -x VISUAL nvim
|
|
||||||
end
|
|
||||||
|
|
||||||
if test -d $HOME/.config/fish/prev.d
|
if test -d $HOME/.config/fish/prev.d
|
||||||
for file in $HOME/.config/fish/prev.d/*.fish
|
for file in $HOME/.config/fish/prev.d/*.fish
|
||||||
if test -f $file
|
if test -f $file
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ if type -q fastfetch
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# add 'set -g no_fetch' somewhere other than post.d to disable fetching
|
# add 'set -g no_fetch' somewhere in prev.d to disable auto-fetch
|
||||||
if not set -q no_fetch
|
if not set -q no_fetch
|
||||||
if type -q ff-brief
|
if type -q ff-brief
|
||||||
ff-brief
|
ff-brief
|
||||||
|
|||||||
3
fish/prev.d/.gitignore
vendored
3
fish/prev.d/.gitignore
vendored
@@ -1,7 +1,6 @@
|
|||||||
*
|
*
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!prompt.fish
|
!prompt.fish
|
||||||
!ssh-agent.fish
|
|
||||||
!theme.fish
|
!theme.fish
|
||||||
!programs.fish
|
!alias.fish
|
||||||
!env.fish
|
!env.fish
|
||||||
|
|||||||
49
fish/prev.d/alias.fish
Normal file
49
fish/prev.d/alias.fish
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
# fzf
|
||||||
|
if type -q fzf
|
||||||
|
fzf --fish | source
|
||||||
|
|
||||||
|
if type -q wl-copy
|
||||||
|
function fzc
|
||||||
|
fzf $argv | string collect | wl-copy
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if type -q bat
|
||||||
|
alias fz="fzf --preview 'bat --style=numbers --color=always {}'"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# cd
|
||||||
|
if type -q zoxide
|
||||||
|
zoxide init fish | source
|
||||||
|
alias cd=z
|
||||||
|
end
|
||||||
|
|
||||||
|
# rm
|
||||||
|
if type -q trash
|
||||||
|
alias rm="echo \"use 'trash' instead :)\" && sh -c \"exit 42\" && echo why do you see this line :O"
|
||||||
|
end
|
||||||
|
|
||||||
|
# ls
|
||||||
|
if type -q eza
|
||||||
|
alias ll="eza -lh --group-directories-first --icons=auto"
|
||||||
|
alias la="eza -lh --group-directories-first --icons=auto --all"
|
||||||
|
alias lt="eza --tree --level=2 --long --icons --git"
|
||||||
|
else
|
||||||
|
alias ll="ls -lh --group-directories-first --color=auto"
|
||||||
|
alias la="ls -lah --group-directories-first --color=auto"
|
||||||
|
end
|
||||||
|
|
||||||
|
# directories
|
||||||
|
alias ..='cd ..'
|
||||||
|
alias ...='cd ../..'
|
||||||
|
alias ....='cd ../../..'
|
||||||
|
|
||||||
|
# grep
|
||||||
|
alias grep="grep --color=auto"
|
||||||
|
|
||||||
|
# nvim
|
||||||
|
if type -q nvim
|
||||||
|
set -x EDITOR nvim
|
||||||
|
set -x VISUAL nvim
|
||||||
|
end
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
fish_add_path $HOME/.local/bin
|
||||||
|
fish_add_path $HOME/.cargo/bin
|
||||||
|
fish_add_path $HOME/go/bin
|
||||||
|
fish_add_path $HOME/.scripts
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
if type -q fzf
|
|
||||||
fzf --fish | source
|
|
||||||
|
|
||||||
if type -q wl-copy
|
|
||||||
function fzc
|
|
||||||
fzf $argv | string collect | wl-copy
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if type -q zoxide
|
|
||||||
zoxide init fish | source
|
|
||||||
alias cd=z
|
|
||||||
end
|
|
||||||
|
|
||||||
if type -q trash
|
|
||||||
alias rm="echo \"use 'trash' instead :)\" && sh -c \"exit 42\" && echo why do you see this line :O"
|
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user