mirror of
https://github.com/1xtier/.dotfiles.git
synced 2026-03-17 10:57:57 +00:00
Adding a function to rc_lib and alias alias_lib
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
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 v="nvim"
|
||||
alias n="nvim"
|
||||
alias rubymine="/home/floki/Загрузки/RubyMine/RubyMine-2024.2.3/bin/./rubymine"
|
||||
alias gi="git init"
|
||||
alias ga="git add"
|
||||
alias gc="git commit -m"
|
||||
alias gp="git push"
|
||||
alias tfi="terraform init"
|
||||
alias tfp="terraform plan"
|
||||
alias tfa="terraform apply"
|
||||
alias tfd="terraform destroy"
|
||||
alias cr="cinc-run"
|
||||
|
||||
@@ -38,4 +38,18 @@ gpush() {
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
myalias() {
|
||||
local RED=$(tput setaf 1)
|
||||
local GREEN=$(tput setaf 2)
|
||||
local normal=$(tput sgr0)
|
||||
|
||||
echo " My custom aliases:"
|
||||
echo " Alias Command"
|
||||
echo "--------------------- ---------------------------------"
|
||||
grep "^alias " ~/.dotfiles/linux/lib/alias_lib | \
|
||||
sed 's/^alias //;s/="/ /;s/"$//' | \
|
||||
sort | \
|
||||
while read -r key command; do
|
||||
printf " ${RED}%-20s${normal} ${GREEN}%s${normal}\n" "$key" "$command"
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user