mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Update bashrc
This commit is contained in:
parent
8be6a3a4d6
commit
a6a3fb4e4e
1 changed files with 21 additions and 4 deletions
25
.bashrc
25
.bashrc
|
|
@ -84,7 +84,7 @@ fi
|
||||||
|
|
||||||
# some more ls aliases
|
# some more ls aliases
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
alias la='ls -A'
|
alias la='ls -la'
|
||||||
alias l='ls -CF'
|
alias l='ls -CF'
|
||||||
|
|
||||||
# Alias definitions.
|
# Alias definitions.
|
||||||
|
|
@ -109,11 +109,15 @@ fi
|
||||||
|
|
||||||
### OWN ALIAS ###
|
### OWN ALIAS ###
|
||||||
|
|
||||||
|
#Alias to get PKGBUILDs from Official repos
|
||||||
|
#alias getpkgbuild="curl https://git.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/"
|
||||||
|
|
||||||
#Pastes
|
#Pastes
|
||||||
alias pb='curl -F c=@- https://ptpb.pw/?u=1'
|
#alias pb='curl -F c=@- https://ptpb.pw/?u=1'
|
||||||
alias ix="curl -F 'f:1=<-' ix.io"
|
alias ix="curl -F 'f:1=<-' ix.io"
|
||||||
|
|
||||||
#Neofetch
|
#Neofetch
|
||||||
|
#alias neofetch='cat neof'
|
||||||
alias neofetch='neofetch --cpu_cores logical --cpu_temp'
|
alias neofetch='neofetch --cpu_cores logical --cpu_temp'
|
||||||
|
|
||||||
#Temperature
|
#Temperature
|
||||||
|
|
@ -129,15 +133,24 @@ alias pcheck='stat -c "%A %a %n"'
|
||||||
#Journalctl logs
|
#Journalctl logs
|
||||||
alias jlogs='journalctl -b -p 4..1'
|
alias jlogs='journalctl -b -p 4..1'
|
||||||
|
|
||||||
# Version for Git packages in AUR
|
# Version for Git packages
|
||||||
alias gitver='echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)'
|
alias gitver='echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)'
|
||||||
|
|
||||||
|
# Version for Git packages with tags
|
||||||
|
alias gitag="git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'"
|
||||||
|
|
||||||
|
# Alias to get sha512sums
|
||||||
|
alias ssums='sha512sum'
|
||||||
|
|
||||||
# Print SRCINFO in AUR packages
|
# Print SRCINFO in AUR packages
|
||||||
alias srcinfo='makepkg --printsrcinfo > .SRCINFO'
|
alias srcinfo='makepkg --printsrcinfo > .SRCINFO'
|
||||||
|
|
||||||
# See the amount of memory and CPU used by applications
|
# See the amount of memory and CPU used by applications
|
||||||
alias cmcheck='ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem|head'
|
alias cmcheck='ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem|head'
|
||||||
|
|
||||||
|
# Alias for git pull --rebase to prevent merging branchs
|
||||||
|
alias gpr='git pull --rebase'
|
||||||
|
|
||||||
# Avoid pip installing packages as root/sudo, execute the following line in your terminal or just delete the # at the begin
|
# Avoid pip installing packages as root/sudo, execute the following line in your terminal or just delete the # at the begin
|
||||||
#install -Dm644 /dev/stdin ~/.config/pip/pip.conf <<< $'[install]\nuser = yes\n'
|
#install -Dm644 /dev/stdin ~/.config/pip/pip.conf <<< $'[install]\nuser = yes\n'
|
||||||
|
|
||||||
|
|
@ -149,7 +162,7 @@ alias cmcheck='ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem|head'
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
|
|
||||||
#Ruby DIR
|
#Ruby DIR
|
||||||
PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin"
|
PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin:$HOME/.local/bin"
|
||||||
|
|
||||||
# Visual
|
# Visual
|
||||||
export VISUAL="nvim"
|
export VISUAL="nvim"
|
||||||
|
|
@ -160,3 +173,7 @@ export VISUAL="nvim"
|
||||||
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||||
exec sx
|
exec sx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export EXPOSE_PATH="/tmp/makepkg/expose/src/ExpoSE/"; export PATH=$PATH:$EXPOSE_PATH #EXPOSE_ENTRY
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue