Add mkcd command
This commit is contained in:
parent
10a5f37df4
commit
f7c7947f80
1 changed files with 5 additions and 0 deletions
|
|
@ -197,6 +197,11 @@ rmdf() {
|
||||||
rm -rf "$(fzfd)"
|
rm -rf "$(fzfd)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mkcd() {
|
||||||
|
local p=$1
|
||||||
|
mkdir -p $p && cd $p
|
||||||
|
}
|
||||||
|
|
||||||
# Check if tmux is already running or if the session is interactive
|
# Check if tmux is already running or if the session is interactive
|
||||||
if [[ -z "$TMUX" ]] && [[ $- == *i* ]]; then
|
if [[ -z "$TMUX" ]] && [[ $- == *i* ]]; then
|
||||||
# Create a new tmux session, if one doesnt exist, give it the main name, never attach to a session
|
# Create a new tmux session, if one doesnt exist, give it the main name, never attach to a session
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue