Skip to content

Commit

Permalink
✨ Add Shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben-Madelaine committed Apr 19, 2021
1 parent f303be3 commit a4972ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@
alias ddmount="sudo fdisk -l && sudo mount /dev/sd* /mnt"


look4path(){
my_var=$1
sudo find ./ -name "$my_var"
echo "The count is $(sudo find .//. -name "$my_var" -print | grep -c //)"
}
alias lfp="look4path"

look4(){
my_var=$1
sudo find ./ -name "$my_var" | rev | cut -d '/' -f1 | rev
echo "The count is $(sudo find .//. -name "$my_var" -print | grep -c //)"
}
alias lf="look4"

## Append history after each command
shopt -s histappend
Expand All @@ -32,6 +39,7 @@ alias c='clear'
alias conf='cd ~/.config'
alias cdp='cd /home/ruben/workspace/projects'
alias cdb='cd //media/ruben/HD1/books'
alias viread='vi ~/workspace/git/statistica/Reading/planning\ de\ lecture.md'
alias cdg='cd /home/ruben/workspace/git'
alias cdvm='cd /home/ruben/workspace/projects/virtual_machine/shared/'
alias dofus='cd ~/Games; ./Ankama\ Launcher-Setup-x86_64.AppImage'
Expand Down Expand Up @@ -92,6 +100,12 @@ alias ku='rsync -vrP --delete-after /home/ruben/workspace/git/keylinks/ root@key
alias vba='visualboyadvance-m'
alias vi='nvim'

alias vbrc='vi ~/.bashrc'
alias vbal='vi ~/.bash_aliases'
alias vvrc='vi ~/.vim/.vimrc'
alias vtmx='vi ~/.tmux.conf'
alias vxrc='vi ~/etc/X11/xinit/xinitrc'


alias voli='amixer -D pulse set Master 5%+'
alias vold='amixer -D pulse set Master 5%-'
Expand Down
2 changes: 1 addition & 1 deletion rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ awful.layout.layouts = {
awful.layout.suit.fair,
-- awful.layout.suit.tile.top,
awful.layout.suit.tile,
-- awful.layout.suit.tile.left,
awful.layout.suit.tile.left,
-- awful.layout.suit.fair.horizontal,
awful.layout.suit.spiral,
-- awful.layout.suit.spiral.dwindle,
Expand Down

0 comments on commit a4972ed

Please sign in to comment.