diff options
| author | yuzu-eva <stevenhu@web.de> | 2022-06-10 00:30:40 +0200 |
|---|---|---|
| committer | yuzu-eva <stevenhu@web.de> | 2022-06-10 00:30:40 +0200 |
| commit | 814e8d99a1e87d14ffb7056b4f1f5474d640dc74 (patch) | |
| tree | 9a995ed589ee7b019652e6741b4e03bac84c5a75 | |
| parent | a00aa5b27ea7b55387c794ed3a57ab5f542c58fd (diff) | |
changed some aliases
| -rw-r--r-- | .bash_aliases | 22 | ||||
| -rw-r--r-- | .bashrc | 4 |
2 files changed, 19 insertions, 7 deletions
diff --git a/.bash_aliases b/.bash_aliases index 9f93187..7b4aefe 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -49,6 +49,9 @@ extract() { *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *.7z) 7z x $1 ;; + *.deb) ar x $1 ;; + *.tar.xz) tar xf $1 ;; + *.tar.zst) unzstd $1 ;; *) echo "'$1' cannot be extracted via extract()" ;; esac else @@ -85,17 +88,26 @@ alias ls='exa -lah --color=always --group-directories-first' # git # ####### +alias commit='git commit -m' +alias fetch='git fetch' +alias pull='git pull origin' +alias push='git push origin' +alias stat='git status' + +# Shortcut for dotfiles repo alias dfiles='/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME' ################### # Package Manager # ################### -alias aptinstall='sudo apt-get install' -alias aptupdate='sudo apt-get update' -alias aptupgrade='sudo apt-get upgrade' -alias listupgrade='apt list --upgradeable' -alias listinst='apt list --installed' +alias aptin='sudo apt install' +alias aptup='sudo apt update && sudo apt upgrade' +alias aptupd='sudo apt update' +alias aptupg='sudo apt upgrade' +alias aptrm='sudo apt remove' +alias listup='apt list --upgradeable' +alias listin='apt list --installed' ########## # yt-dlp # @@ -115,11 +115,11 @@ if ! shopt -oq posix; then fi ## Powerline -if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then +if [ -f "$HOME/.local/lib/python3.8/site-packages/powerline/bindings/bash/powerline.sh" ]; then powerline-daemon -q POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_SELECT=1 - source /usr/share/powerline/bindings/bash/powerline.sh + source "$HOME/.local/lib/python3.8/site-packages/powerline/bindings/bash/powerline.sh" fi # Generated for envman. Do not edit. |
