master
Dominik Madarász 2024-05-21 23:11:36 +00:00
parent d4f60b6f9e
commit 5818d5ec4d
2 changed files with 27 additions and 1 deletions

View File

@ -28,3 +28,29 @@ function gitcp {
alias gitlg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset by %an' --abbrev-commit --date=relative"
function mcd {
mkdir $1 && cd $1;
}
function calc {
echo "$@" | bc
}
alias cls="clear"
alias mx="tmux a"
alias vimdiff="nvim -d"
alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -p' # Preferred 'mkdir' implementation
alias ll='ls -FGlAhp' # Preferred 'ls' implementation
alias less='less -FSRXc' # Preferred 'less' implementation
lcd() { builtin cd "$@"; ll; } # Always list directory contents upon 'cd'
alias cd..='cd ../' # Go back 1 directory level (for fast typers)
alias ..='cd ../' # Go back 1 directory level
alias ...='cd ../../' # Go back 2 directory levels
alias ....='cd ../../../' # Go back 3 directory levels
alias ~="cd ~" # ~: Go Home
alias c='clear' # c: Clear terminal display
alias path='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths
mcd () { mkdir -p "$1" && cd "$1"; } # mcd: Makes new Dir and jumps inside

2
prep
View File

@ -2,7 +2,7 @@
sudo apt update && sudo apt upgrade -y
sudo apt install -y ripgrep build-essential git cmake fzf stow zsh
sudo apt install -y ninja-build gettext unzip curl tmux
sudo apt install -y ninja-build gettext unzip curl tmux bc
sudo update-alternatives --install /usr/bin/editor editor /usr/local/bin/nvim 1000
sudo update-alternatives --install /usr/bin/vim vim /usr/local/bin/nvim 1000