From 9e5e4da5845681a04488db4d8fe1e57566dbc9df Mon Sep 17 00:00:00 2001 From: Jaewook Lee <11328376+jaewooklee93@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:51:55 -0400 Subject: [PATCH] bsahrc: add my command --- linux-bash/bash_aliases.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/linux-bash/bash_aliases.sh b/linux-bash/bash_aliases.sh index cf8c629..634a09f 100644 --- a/linux-bash/bash_aliases.sh +++ b/linux-bash/bash_aliases.sh @@ -1,10 +1,19 @@ export RC="~/.bash_aliases" alias rc="vi $RC && tail $RC && source $HOME/.${SHELL##*/}rc" +alias my="sudo chown -R $(id -u):$(id -g)" + alias l="ls -l --color=auto" alias ls="ls -al --color=auto" alias ns="watch -n 0.1 nvidia-smi" -alias log="docker compose logs -f" # compose V2 +log() { + if [ $# -eq 0 ]; then + docker compose logs -f + else + docker logs -f "$@" + fi +} + alias i="sudo apt-get install -y" alias debian="docker run -it --rm --gpus all python bash" alias download="huggingface-cli download"