mirror of
https://github.com/1xtier/.dotfiles.git
synced 2026-03-17 10:57:57 +00:00
remove dir sh, remove gitmudole aliasa, add lib zshrc and alias_lib
This commit is contained in:
10
linux/lib/alias_lib
Normal file
10
linux/lib/alias_lib
Normal file
@@ -0,0 +1,10 @@
|
||||
alias vim="nvim"
|
||||
alias v="nvim"
|
||||
alias mdev-lxc="sshfs -o follow_symlinks dev-lxc:/root/dev/ $HOME/dev-lxc"
|
||||
alias udev-lxc="umount $HOME/dev-lxc"
|
||||
alias mwork="sshfs -o follow_symlinks root@192.168.19.20:/root/ $HOME/dev/work"
|
||||
alias uwork="umount $HOME/dev/work"
|
||||
alias df="grc df"
|
||||
alias du="grc du"
|
||||
alias n="nvim"
|
||||
alias rubymine="/home/floki/Загрузки/RubyMine/RubyMine-2024.2.3/bin/./rubymine"
|
||||
27
linux/lib/rc_lib
Normal file
27
linux/lib/rc_lib
Normal file
@@ -0,0 +1,27 @@
|
||||
load_all_env() {
|
||||
local env_dir="$HOME/.env"
|
||||
|
||||
if [ -d "$env_dir" ]; then
|
||||
for env_file in "$env_dir"/*; do
|
||||
if [ -f "$env_file" ] && [ -r "$env_file" ]; then
|
||||
echo "Loading: $env_file"
|
||||
set -a
|
||||
source "$env_file"
|
||||
set +a
|
||||
fi
|
||||
done
|
||||
echo "All environment files loaded from $env_dir"
|
||||
else
|
||||
echo "Env directory not found: $env_dir"
|
||||
fi
|
||||
}
|
||||
load_all_env
|
||||
|
||||
|
||||
ginit() {
|
||||
git init --initial-branch=main
|
||||
git remote add origin $1
|
||||
git add .
|
||||
git commit -m "Initial commit"
|
||||
git push --set-upstream origin main
|
||||
}
|
||||
Reference in New Issue
Block a user