aboutsummaryrefslogtreecommitdiff
path: root/laptop/.bashrc
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-06-10 02:24:31 +0200
committerMosder <xmosder12@gmail.com>2026-06-10 02:24:31 +0200
commit1f2824b912b22a687fb0f1c56f82198128bef1ca (patch)
treea22c4425c43fcd111c441531b21e275b1fd97f3f /laptop/.bashrc
parenta7fab53f802c8bacfce66fb3455145835e231460 (diff)
added and updated a lot of configs + refactored it to be more accessible
Diffstat (limited to 'laptop/.bashrc')
-rw-r--r--laptop/.bashrc45
1 files changed, 0 insertions, 45 deletions
diff --git a/laptop/.bashrc b/laptop/.bashrc
deleted file mode 100644
index 3de2fba..0000000
--- a/laptop/.bashrc
+++ /dev/null
@@ -1,45 +0,0 @@
-[[ $- != *i* ]] && return
-
-alias ls='ls --color=auto'
-alias grep='grep --color=auto'
-PS1='\[\e[0;35m\][\u@\h \W]\$\[\e[0m\] '
-
-alias vim='nvim'
-alias bashcfg='vim ~/.bashrc'
-alias hyprcfg='vim ~/.config/hypr/hyprland.conf'
-alias die='shutdown -h 0'
-alias grepfind='sudo find / | grep'
-alias rfm='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
-
-# yaptide
-alias yap='~/projects/yap/start.sh'
-
-restart() {
- wezterm &
- exit
-}
-clip() {
- wl-copy < "$@"
-}
-open(){
- for file in "$@"
- do
- xdg-open "$file"
- done
-}
-resizeVideo() {
- if [[ $# != 3 ]]; then
- echo "Usage: resizeVideo <input-file> <output-file> <size-in-MiB>"
- else
- inputFile=$1
- outputFile=$2
- sizeInMiB=$3
- videoLength=$(ffprobe -i $inputFile -show_entries format=duration -v quiet -of csv="p=0")
- bitrateInkb=$(echo "$sizeInMiB*8300/$videoLength" | bc)
- ffmpeg -y -i $inputFile -c:v libx264 -b:v ${bitrateInkb}k -pass 1 -an -f null /dev/null && \
- ffmpeg -i $inputFile -c:v libx264 -b:v ${bitrateInkb}k -pass 2 -c:a aac -b:a 128k $outputFile
- rm ffmpeg2pass-0.log ffmpeg2pass-0.log.mbtree
- fi
-}
-
-export PATH="$PATH:/home/mosder/.bin:/home/mosder/.local/bin:/usr/bin"