Make bashrc more efficient: Difference between revisions

From 清冽之泉
Jump to navigation Jump to search
Created page with "<syntaxhighlight lang="bash" line> export EDITOR=emacs alias s='ls -hl' alias sb='source ~/.bashrc' alias sp='poweroff' alias sr='reboot' </syntaxhighlight>"
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:


export EDITOR=emacs
export EDITOR=emacs
alias e='emacs'
alias se='sudo emacsclient'
alias s='ls -hl'
alias s='ls -hl'


alias eb='emacs ~/.bashrc'
alias sb='source ~/.bashrc'
alias sb='source ~/.bashrc'
alias sp='poweroff'
alias sp='poweroff'
alias sr='reboot'
alias sr='reboot'
alias as='apt search --names-only'
alias ai='sudo apt install'
alias au='sudo apt update'
alias ac='sudo apt autoremove'
alias rmd='rm -rf'
alias du='du -d 1 -hl'
alias pon='export {http,https,ftp,all}_proxy="http://$host_ip:35280"'
alias poff='unset {http,https,ftp,all}_proxy'
alias por='echo $http_proxy'
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 15:15, 15 May 2025

export EDITOR=emacs
alias e='emacs'
alias se='sudo emacsclient'
alias s='ls -hl'

alias eb='emacs ~/.bashrc'
alias sb='source ~/.bashrc'
alias sp='poweroff'
alias sr='reboot'

alias as='apt search --names-only'
alias ai='sudo apt install'
alias au='sudo apt update'
alias ac='sudo apt autoremove'
alias rmd='rm -rf'
alias du='du -d 1 -hl'

alias pon='export {http,https,ftp,all}_proxy="http://$host_ip:35280"'
alias poff='unset {http,https,ftp,all}_proxy'
alias por='echo $http_proxy'