It is unclear to me what you want??
I use a ".bash_aliases" will that not work you?
More detail is needed to give a straight suggestion. Like what alias you want to use ie:
Code:
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias sl="ls"
alias lt='ls --human-readable --size -1 -S --classify'
alias df="df -Th"
alias left='ls -t -1'
alias count='find . -type f | wc -l'
alias mnt="mount | awk -F' ' '{ printf \"%s\t%s\n\",\$1,\$3; }' | column -t | egrep ^/dev/ | sort"
alias mntd="lsblk -e 7 -o name,size,type,fstype,mountpoint"
alias gh='history | grep'
alias cpv='rsync -ah --info=progress2'
alias ec4="sudo '/home/me/ExtremeCooling4Linux-v0.3-x86_64.AppImage' change-state"
alias st="sudo smartctl -a -t long /dev/sdb2"
alias grubmen="cat /boot/grub/grub.cfg | grep menuentry"
alias dp1="xrandr --output DP-2 --off"
alias dp2="xrandr --output DP-2 --auto"
alias bet="'/home/me/balenaEtcher-1.9.0-x64.AppImage' --disable-gpu-sandbox"
That's just a small amount of alias's I use.
EDIT: For a startup I use something like this
Code:
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Or and not what you said you wanted:
it can be added to /etc/profile, which will affect all users upon login.
Bookmarks