mirror of
https://github.com/spirit-x64/dotfiles.git
synced 2024-11-23 23:03:11 +03:00
Use doas
i already configured it in my environment idk why i force myself to use sudo
This commit is contained in:
parent
8040a9b131
commit
33e854682f
@ -27,10 +27,10 @@ alias tree='tree -a -I ".git/"'
|
||||
alias mkdir='mkdir -pv'
|
||||
|
||||
# Power management
|
||||
alias reboot='sudo /usr/bin/reboot'
|
||||
alias poweroff='sudo /usr/bin/poweroff'
|
||||
alias halt='sudo /usr/bin/halt'
|
||||
alias shutdown='sudo /usr/bin/shutdown'
|
||||
alias reboot='doas /usr/bin/reboot'
|
||||
alias poweroff='doas /usr/bin/poweroff'
|
||||
alias halt='doas /usr/bin/halt'
|
||||
alias shutdown='doas /usr/bin/shutdown'
|
||||
|
||||
# Git
|
||||
alias gs='git status'
|
||||
@ -46,7 +46,7 @@ alias ct='cargo test'
|
||||
alias cb='cargo build'
|
||||
|
||||
# Julia
|
||||
#alias julia='julialauncher' # just make a symbolic link lazy kid :) 'sudo ln -s /usr/bin/julialauncher /usr/bin/julia'
|
||||
#alias julia='julialauncher' # just make a symbolic link lazy kid :) 'doas ln -s /usr/bin/julialauncher /usr/bin/julia'
|
||||
alias jt='julia -e "using Pkg; Pkg.activate(pwd()); Pkg.test()"'
|
||||
alias jopt='julia --optimize=3 --check-bounds=no --math-mode=fast --threads auto'
|
||||
|
||||
@ -54,4 +54,4 @@ alias jopt='julia --optimize=3 --check-bounds=no --math-mode=fast --threads auto
|
||||
alias py='python'
|
||||
|
||||
# SSH for AWS server
|
||||
alias aws='sudo ssh -i /path/to/key-file.pem ec2-user@ec2-000-000-000-000.compute-1.amazonaws.com'
|
||||
alias aws='doas ssh -i /path/to/key-file.pem ec2-user@ec2-000-000-000-000.compute-1.amazonaws.com'
|
||||
|
Loading…
Reference in New Issue
Block a user