initial commit

This commit is contained in:
aminnairi
2025-11-08 20:46:24 +01:00
parent 72670045f3
commit 722f9db961
64 changed files with 2281 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
function cat
bat --style full --italic-text always --force-colorization --theme gruvbox-dark $argv
end
+3
View File
@@ -0,0 +1,3 @@
function ls
eza --icons --long --classify --git --header --created --accessed --modified $argv
end
+3
View File
@@ -0,0 +1,3 @@
function pass
passbolt get resource --id (passbolt list resource | fzf | cut -d " " -f 1) | grep Password | cut -d " " -f 2 | xclip -selection clipboard
end
@@ -0,0 +1,30 @@
function privateinternetaccess
# Store the folder's path leading to the *.ovpn files
set openvpn_files_path "/etc/privateinternetaccess"
# If there are no openvpn configuration files available
if not count $openvpn_files_path/* > /dev/null
# Bail out and exit with an error
echo "Error: no OpenVPN files found in $openvpn_files_path"
return 1
end
# Set the OpenVPN file name choosen by the user
set selected_file (/usr/bin/ls $openvpn_files_path | fzf)
# Set the full path to the OpenVPN configuration file
set selected_file_path $openvpn_files_path/$selected_file
# Prevent this script from running if the path is incorrect
if not test -f $selected_file_path
# Bail out and exit with an error
echo "Error: Configuration file not found at $selected_file_path"
return 2
end
# Open a new OpenVPN tunnel without caching the credentials by providing the path to a configuration
sudo openvpn --auth-nocache --config $selected_file_path
# Notification
notify-send "OpenVPN" "Disconnected from OpenVPN"
end
+4
View File
@@ -0,0 +1,4 @@
function rm
# Use GIO in order to move the file to trash instead of deleting it permanently
/usr/bin/gio trash $argv
end
+12
View File
@@ -0,0 +1,12 @@
function tmux
if test (count $argv) -eq 0
# Install Tmux plugins
~/.tmux/plugins/tpm/bin/install_plugins
# Update Tmux plugins
~/.tmux/plugins/tpm/bin/update_plugins all
end
# Execute TMUX
/usr/bin/tmux -u $argv
end
+3
View File
@@ -0,0 +1,3 @@
function vicd
cd (vifm --choose-dir - $argv)
end